/* ====================================
   SmartDev Academy - Auth Styles
   ==================================== */

/* Variables */
:root {
    --color-text-gray: #6b7280;
    --color-heading: #1f2937;
    --color-primary: #006d77;
    --color-primary-dark: #005a63;
    --color-primary-light: #e8f4f5;
    --color-blue-light: rgb(232, 240, 254);
    --color-white: rgb(255, 255, 255);
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-border: #e5e7eb;
    --color-bg: #f9fafb;

    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Comfortaa", sans-serif;
    line-height: 1.6;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-white));
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: inline-block;
    text-decoration: none;
}

.auth-header .logo .t1 {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1.2;
}

.auth-header .logo .t2 {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-primary);
}

/* Auth Content */
.auth-content {
    text-align: center;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
}

.auth-title {
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert ul li {
    margin-bottom: 0.25rem;
}

.alert ul li:last-child {
    margin-bottom: 0;
}

/* Auth Form */
.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-heading);
}

.required {
    color: var(--color-error);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.1);
}

.form-input.is-invalid {
    border-color: var(--color-error);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-error);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-gray);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--color-heading);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-full {
    width: 100%;
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.auth-footer p {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.resend-form {
    display: inline;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.auth-link-btn:hover {
    text-decoration: underline;
}

/* Auth Back */
.auth-back {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--color-primary);
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    transition: all 0.2s;
}

.otp-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.1);
}

/* Responsive */
@media (min-width: 480px) {
    .auth-card {
        padding: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .otp-input {
        width: 52px;
        height: 60px;
    }
}
