:root {
    --primary-color: #008d8e;
    --primary-hover: #007677;
    --primary-light: #e6f3f4;
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.5);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --radius-outer: 12px;
    --radius-inner: 8px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

.app-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.header-logo {
    height: 48px;
    width: auto;
    display: block;
}

.app-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.welcome-card {
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-content {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.welcome-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.choices-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.choice-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-outer);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    outline: none;
}

.choice-card:hover, .choice-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 141, 142, 0.08), 0 8px 10px -6px rgba(0, 141, 142, 0.08);
    border-color: rgba(0, 141, 142, 0.3);
}

.choice-card:focus-visible {
    border-color: var(--primary-color);
}

.choice-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-inner);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.choice-card:hover .choice-icon {
    transform: scale(1.05);
}

.choice-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.choice-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.arrow-indicator {
    position: absolute;
    bottom: 32px;
    right: 32px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.choice-card:hover .arrow-indicator {
    opacity: 1;
    transform: translateX(0);
}

.login-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-outer);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    padding: 40px;
    position: relative;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

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

.btn-back svg {
    transition: transform 0.2s ease;
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    height: 48px;
    width: auto;
    margin-bottom: 12px;
}

.login-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-inner);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3.5px rgba(0, 141, 142, 0.15);
}

.error-container {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius-inner);
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-inner);
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

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

.btn-submit:active {
    transform: scale(0.985);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

.hidden {
    display: none !important;
}

.app-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .welcome-content h1 {
        font-size: 1.75rem;
    }

    .choices-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .choice-card {
        padding: 24px;
    }

    .arrow-indicator {
        bottom: 24px;
        right: 24px;
        opacity: 1;
        transform: translateX(0);
    }
    
    .login-card {
        padding: 30px 20px;
    }
}
