/* ========================================
   eRevir - Account Pages Stylesheet
   İş Sağlığı ve Güvenliği Yönetim Sistemi
   Modern, Clean & Symmetric Design
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #0b1f3a;
    --primary-dark: #050f23;
    --primary-light: #14345c;
    --accent-color: #f47a20;
    --accent-dark: #d36512;
    --accent-light: #ffb566;
    --secondary-color: #1b9a59;
    --danger-color: #c73232;
    --text-dark: #0f172a;
    --text-light: #61708c;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --bg-light: #f4f6fa;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ===== WRAPPER ===== */
.account-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background-image:
        linear-gradient(120deg, rgba(11, 31, 58, 0.95) 0%, rgba(17, 43, 74, 0.9) 55%, rgba(5, 15, 35, 0.9) 100%),
        url("/images/login-bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.account-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 122, 32, 0.12) 0%, rgba(11, 31, 58, 0) 60%);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.5; }
}

/* ===== CARD ===== */
.account-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-card.register-card {
    max-width: 720px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER ===== */
.account-header {
    padding: var(--spacing-2xl) var(--spacing-xl);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.account-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
                repeating-linear-gradient(
                    135deg,
                    rgba(255, 255, 255, 0.03),
                    rgba(255, 255, 255, 0.03) 16px,
                    transparent 16px,
                    transparent 32px
                );
    opacity: 0.5;
    pointer-events: none;
}

.account-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    position: relative;
    z-index: 1;
}

.account-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.account-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    text-align: center;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

/* ===== BODY ===== */
.account-body {
    padding: var(--spacing-2xl) var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.account-form-intro {
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.account-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

.account-form-subtitle {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== ALERTS ===== */
.account-alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.account-alert-danger {
    background-color: #fee;
    border-left-color: var(--danger-color);
    color: #c81e1e;
}

.account-alert-success {
    background-color: #d4edda;
    border-left-color: var(--secondary-color);
    color: #155724;
}

.account-alert-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* ===== FORM ===== */
.account-form {
    width: 100%;
}

/* Form Sections */
.form-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--spacing-lg);
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

/* Form Groups */
.account-form .mb-3,
.account-form .mb-4 {
    margin-bottom: var(--spacing-lg);
}

.account-form .mb-4 {
    margin-bottom: var(--spacing-xl);
}

/* Labels */
.account-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

/* Inputs */
.account-form .form-control,
.account-form .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.account-form .form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.account-form .form-control:focus,
.account-form .form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(244, 122, 32, 0.15);
}

.account-form .form-control:hover:not(:focus),
.account-form .form-select:hover:not(:focus) {
    border-color: rgba(15, 23, 42, 0.25);
}

/* Validation States */
.account-form .form-control.invalid {
    border-color: var(--danger-color);
    background-color: #fff5f5;
}

.account-form .form-control.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.validation-message {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--danger-color);
    font-weight: 500;
}

/* Checkbox */
.account-form .form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0;
    margin: 0;
}

.account-form .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.account-form .form-check-input:hover {
    border-color: var(--accent-color);
}

.account-form .form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 122, 32, 0.15);
}

.account-form .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.account-form .form-check-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.form-actions .form-check {
    justify-content: flex-start;
}

.form-actions .btn-account-primary {
    width: 100%;
}

/* Legacy grid helper (Register/Forgot Password buttons) */
.d-grid {
    display: grid;
    width: 100%;
}

/* Primary Button */
.btn-account-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(244, 122, 32, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-account-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-account-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(244, 122, 32, 0.35);
}

.btn-account-primary:hover::before {
    left: 100%;
}

.btn-account-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(244, 122, 32, 0.3);
}

.btn-account-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== LINKS ===== */
.account-links {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.account-link {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.account-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.account-link:hover {
    color: var(--accent-dark);
}

.account-link:hover::after {
    width: 100%;
}

/* ===== FOOTER ===== */
.account-footer {
    background-color: var(--bg-light);
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.account-footer-text {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
}

.account-footer-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.account-footer-text a:hover {
    color: var(--accent-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .account-wrapper {
        padding: var(--spacing-md);
    }

    .account-card {
        max-width: 100%;
    }

    .account-header {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .account-body {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .account-title {
        font-size: 1.5rem;
    }

    .account-form-intro {
        text-align: center;
    }

    .account-footer {
        padding: var(--spacing-md);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .account-form .form-control,
    .account-form .form-select {
        border-width: 3px;
    }
}

/* ===== CONFIRMATION PAGE ===== */
.confirmation-content {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.confirmation-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmation-icon svg {
    width: 64px;
    height: 64px;
    color: var(--secondary-color);
    filter: drop-shadow(0 4px 12px rgba(27, 154, 89, 0.25));
}

.confirmation-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
}

.confirmation-message {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto;
}

.confirmation-message p {
    margin-bottom: var(--spacing-md);
}

.confirmation-message p:last-child {
    margin-bottom: 0;
}

.confirmation-message strong {
    color: var(--accent-color);
    font-weight: 600;
}

.confirmation-message .text-muted {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .confirmation-title {
        font-size: 1.5rem;
    }

    .confirmation-icon svg {
        width: 48px;
        height: 48px;
    }
}
