@import url('main.css');

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 40px 20px;
    font-family: 'Rubik-Regular', 'Gilroy-Medium', sans-serif;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-card-icon {
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.auth-card h2 {
    font-family: 'Gilroy-SemiBold', sans-serif;
    font-size: 28px;
    margin-bottom: 8px;
    color: #111827;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
}

.modern-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-field-group label i {
    color: #2563eb;
    width: 16px;
    text-align: center;
}

.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    font-family: 'Rubik-Regular', 'Gilroy-Medium', sans-serif;
}

.input-wrapper input[type="password"] {
    padding-right: 52px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 2px;
}

.field-help {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.form-errors-global {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.error-message {
    color: #dc2626;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message i {
    flex-shrink: 0;
}

.password-wrapper {
    position: relative;
}

.btn-generate-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #eff6ff;
    border: none;
    color: #2563eb;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-generate-password:hover {
    background: #dbeafe;
}

.btn-show-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.btn-show-password:hover {
    color: #2563eb;
    background: #f3f4f6;
}

.password-rules {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.8;
    font-family: 'Rubik-Regular', 'Gilroy-Medium', sans-serif;
}

.password-rules li {
    padding-left: 22px;
    position: relative;
}

.password-rules li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 11px;
    top: 1px;
}

.password-rules li {
    padding-left: 16px;
    position: relative;
}

.password-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-family: 'Rubik-Regular', 'Gilroy-Medium', sans-serif;
}

.btn-submit-auth {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    font-family: 'Gilroy-SemiBold', sans-serif;
    margin-top: 8px;
}

.btn-submit-auth:hover {
    background: #1d4ed8;
}

.auth-card-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.auth-card-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}