/**
 * Login CSS
 */
main {
    background: white;
}

/* Message Alert Styles */
.message-container {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.message {
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: messageFadeIn 0.3s ease-out;
    width: auto;
    max-width: 90%;
}

.message.error {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
    color: #f56c6c;
}

.message.success {
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
}

.message.info {
    background-color: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #409eff;
}

.message.warning {
    background-color: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
}

.message-icon {
    margin-right: 10px;
    font-size: 16px;
}

.message-content {
    flex: 1;
    font-size: 14px;
}

.message-close {
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.message-close:hover {
    opacity: 1;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Login Container */
.login-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (min-width: 768px) {
    .login-container {
        padding: 130px 40px;
    }
}

/* Login Section */
.login-section {
    text-align: center;
}

.login-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #111827;
}

.login-subtitle {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #111827;
}

.login-description {
    font-size: 14px;
    color: rgba(28, 28, 28, 0.7);
    text-align: center;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .login-title {
        font-size: 32px;
    }

    .login-subtitle {
        font-size: 32px;
    }

    .login-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

/* Login Form */
.login-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
}

.form-group {
    width: 100%;
    max-width: 405px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #1C1C1C;
    text-align: left;
}

@media (min-width: 768px) {
    .form-label {
        font-size: 16px;
    }
}

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    height: 47px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: #BE930B;
    box-shadow: 0 0 0 2px #BE930B;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
}

/* Customer Links */
.customer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.new-customer-link,
.forgot-password-link {
    font-size: 14px;
    color: rgba(28, 28, 28, 0.7);
}

.new-customer-link a,
.forgot-password-link a {
    color: #BE930B;
    text-decoration: underline;
    text-decoration-color: rgba(190, 147, 11, 0.5);
    text-decoration-skip-ink: auto;
    transition: color 0.2s ease-in-out;
}

.new-customer-link a:hover,
.forgot-password-link a:hover {
    color: #a67f0a;
}

@media (min-width: 768px) {
    .new-customer-link,
    .forgot-password-link {
        font-size: 16px;
    }
}

/* OAuth2 Login Section */
.oauth2-login-section {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.oauth2-icon {
    margin-right: 8px;
}

/* Buttons */
.btn {
    width: 112px;
    height: 47px;
    padding: 12px 15px;
    border-radius: 6px;
    border-width: 1px;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #BE930B;
    color: #ffffff;
    border: 1px solid #BE930B;
}

.btn-primary:hover {
    background-color: #d4a612;
    border-color: #d4a612;
}

.btn-oauth2 {
    background-color: #1890ff;
    color: #ffffff;
    border: 1px solid #1890ff;
    display: flex;
    align-items: center;
    padding: 14px 15px;
    width: 190px;
}

.btn-oauth2:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-form {
        gap: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group {
        width: 335px;
        max-width: 335px;
    }
    
    .form-control {
        height: 45px;
    }
    
    .oauth2-login-section {
        margin-top: 8px;
    }
    
    .customer-links {
        gap: 4px;
        margin-top: 4px;
    }
}
    
    .form-group {
        width: 100%;
    }
}
