/* ============================================
   SWISS POST - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --post-yellow: #FFCC00;
    --post-yellow-hover: #E6B800;
    --post-red: #E2001A;
    --post-red-hover: #C4001A;
    --post-black: #000000;
    --post-dark: #1A1A1A;
    --post-gray-dark: #333333;
    --post-gray: #666666;
    --post-gray-light: #999999;
    --post-gray-lighter: #E5E5E5;
    --post-gray-bg: #F5F5F5;
    --post-white: #FFFFFF;
    
    --font-primary: 'Frutiger', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--post-dark);
    background-color: var(--post-white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--post-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 30px;
}

.logo-container {
    flex-shrink: 0;
}

.logo-link {
    display: block;
}

.logo {
    height: 40px;
    width: auto;
}

.header-nav {
    flex: 1;
    display: none;
}

@media (min-width: 992px) {
    .header-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list li a {
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    color: var(--post-dark);
    padding: 8px 0;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--post-yellow);
    transition: width var(--transition-normal);
}

.nav-list li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher select {
    padding: 8px 12px;
    border: 1px solid var(--post-gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    background: var(--post-white);
    transition: border-color var(--transition-fast);
}

.lang-switcher select:hover {
    border-color: var(--post-gray-light);
}

.btn-login {
        display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--post-yellow);
    color: var(--post-black);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-login:hover {
    background: var(--post-yellow-hover);
    transform: translateY(-1px);
}

.login-icon {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-banner {
        height: 400px;
    }
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--post-yellow);
    color: var(--post-black);
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--post-white);
    line-height: 1.2;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 2.75rem;
    }
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
    padding: 40px 20px 80px;
    background: var(--post-gray-bg);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .form-container {
        grid-template-columns: 1fr 300px;
        align-items: start;
    }
}

.form-card {
    background: var(--post-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
        overflow: hidden;
    margin-top: -80px;
    position: relative;
        z-index: 10;
}

.form-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--post-gray-lighter);
}

.status-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--post-yellow) 0%, #FFD633 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255,204,0,0.4);
}

.status-icon svg {
    width: 28px;
    height: 28px;
    color: var(--post-black);
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--post-dark);
    margin-bottom: 12px;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--post-gray);
    max-width: 400px;
    margin: 0 auto;
}

/* Form Styles */
.verification-form {
    padding: 32px;
}

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

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

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

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

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--post-gray-lighter);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--post-dark);
    background: var(--post-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--post-gray-light);
}

.form-group input:focus {
    border-color: var(--post-yellow);
    box-shadow: 0 0 0 4px rgba(255,204,0,0.15);
}

.form-group input:hover:not(:focus) {
    border-color: var(--post-gray-light);
}

/* Form Notice */
.form-notice {
        display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--post-gray-bg);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.form-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--post-gray);
    margin-top: 2px;
}

.form-notice span {
    font-size: 0.85rem;
    color: var(--post-gray);
    line-height: 1.5;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--post-yellow);
    color: var(--post-black);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(255,204,0,0.3);
}

.btn-submit:hover {
    background: var(--post-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,204,0,0.4);
}

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

.btn-submit svg {
    width: 20px;
    height: 20px;
}

/* Form Footer */
.form-footer {
    padding: 20px 32px 28px;
    background: var(--post-gray-bg);
    border-top: 1px solid var(--post-gray-lighter);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--post-gray);
}

.badge svg {
    width: 18px;
    height: 18px;
}

.badge span {
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
}

/* Info Box */
.info-box {
    background: var(--post-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

@media (min-width: 768px) {
    .info-box {
        margin-top: -80px;
        position: relative;
        z-index: 10;
    }
}

.info-box h3 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--post-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--post-yellow);
}

.info-box ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-box li {
        display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-box li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--post-yellow);
    margin-top: 2px;
}

.info-box li span {
    font-size: 0.9rem;
    color: var(--post-gray-dark);
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--post-dark);
    color: var(--post-white);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 60px 0 40px;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--post-yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--post-yellow);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
    background: var(--post-yellow);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover svg {
    color: var(--post-black);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-legal {
    display: flex;
        flex-wrap: wrap;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--post-white);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .header-top {
        height: 60px;
    }
    
    .logo {
        height: 32px;
    }
    
    .login-text {
        display: none;
    }
    
    .btn-login {
        padding: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-header,
    .verification-form,
    .form-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .security-badges {
    flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

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

.form-card {
    animation: fadeInUp 0.6s ease-out;
}

.info-box {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Form field animations */
.form-group {
    animation: fadeInUp 0.4s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }

/* Loading state for button */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.loading span {
    visibility: hidden;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.2);
    border-top-color: var(--post-black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

    }
}