/* Auth Pages Styles */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: rgba(5, 25, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    text-decoration: none;
}

.auth-logo svg {
    color: #03EF62;
}

.auth-logo span {
    font-size: 24px;
    font-weight: 700;
    color: #03EF62;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 32px;
}

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

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

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: #03EF62;
    background: rgba(255, 255, 255, 0.08);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Input wrapper with icons */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-input {
    padding-left: 44px;
    padding-right: 44px;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #03EF62;
}

/* Password toggle button */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.7);
}

.toggle-password.active {
    color: #03EF62;
}

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
}

/* Checkbox styling */
.form-checkbox {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #03EF62;
    border-color: #03EF62;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #05192D;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text a {
    color: #03EF62;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Form options (remember me + forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.forgot-link {
    font-size: 14px;
    color: #03EF62;
    text-decoration: none;
}

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

/* Button loading state */
.btn-auth-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.btn-loader .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.btn-auth-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Social auth buttons */
.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.social-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.field-error {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 4px;
}

.form-errors {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.error-text {
    font-size: 14px;
    color: #ff6b6b;
    margin: 0;
}

.btn-auth-primary {
    width: 100%;
    padding: 14px 24px;
    background: #03EF62;
    color: #05192D;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-auth-primary:hover {
    background: #00d956;
    transform: translateY(-1px);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.auth-footer a {
    color: #03EF62;
    text-decoration: none;
    font-weight: 500;
}

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

/* Messages */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.message-success {
    background: rgba(3, 239, 98, 0.1);
    border: 1px solid rgba(3, 239, 98, 0.3);
    color: #03EF62;
}

.message-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.message-info {
    background: rgba(100, 149, 237, 0.1);
    border: 1px solid rgba(100, 149, 237, 0.3);
    color: #6495ed;
}

/* Profile Page Styles */
.profile-section {
    position: relative;
    z-index: 10;
    padding: 80px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7C3AED, #03EF62);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.profile-email {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px !important;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #03EF62;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.profile-actions {
    display: flex;
    gap: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }

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

    .auth-title {
        font-size: 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }
}
