/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Auth Card */
.auth-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* Header Section */
.auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: #1a1d29;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* Company Logo Image */
.company-logo {
    max-width: 180px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1d29;
    margin: 0;
}

/* Subtitle */
.auth-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Auth Form */
.auth-form {
    width: 100%;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    margin-left: auto;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    opacity: 1;
}

.btn-close::before {
    content: "×";
    font-size: 24px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1d29;
    margin-bottom: 8px;
}

/* Password Label Wrapper */
.password-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1d29;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Sign In Button */
.btn-signin {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    background: #1a1d29;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    margin-top: 24px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.btn-signin:hover {
    background: #2d3142;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-signin:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: #ffffff;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Google Button */
.btn-google {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1a1d29;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Sign Up Text */
.signup-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.signup-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Reset Password Styles */
.reset-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1d29;
    margin-bottom: 8px;
    text-align: left;
}

.reset-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
    text-align: left;
}

.back-to-login {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 0;
}

.back-link {
    color: #1a1d29;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-subtitle {
        font-size: 13px;
    }
}
