/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: hsl(0 0% 100%);
    color: hsl(222.2 84% 4.9%);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and layout */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(to bottom right, hsl(0 0% 100%), hsl(210 40% 98%));
}

.content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/* Typography */
.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(222.2 84% 4.9%);
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.125rem;
    color: hsl(215.4 16.3% 46.9%);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Modern button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    white-space: nowrap;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    padding: 1rem 2rem;
    min-height: 3.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    letter-spacing: 0.025em;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn:focus-visible {
    outline: 2px solid hsl(222.2 84% 4.9%);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Primary button variant */
.btn-primary {
    background: linear-gradient(135deg, hsl(222.2 47.4% 11.2%), hsl(222.2 47.4% 8%));
    color: hsl(210 40% 98%);
    box-shadow: 
        0 4px 15px 0 rgb(0 0 0 / 0.1),
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        inset 0 1px 0 0 rgb(255 255 255 / 0.1);
    border: 1px solid hsl(222.2 47.4% 15%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, hsl(222.2 47.4% 15%), hsl(222.2 47.4% 12%));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px 0 rgb(0 0 0 / 0.15),
        0 4px 10px 0 rgb(0 0 0 / 0.1),
        inset 0 1px 0 0 rgb(255 255 255 / 0.2);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 15px 0 rgb(0 0 0 / 0.1),
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        inset 0 1px 0 0 rgb(255 255 255 / 0.1);
}

/* Button icon */
.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 640px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: hsl(222.2 84% 4.9%);
        color: hsl(210 40% 98%);
    }
    
    .container {
        background: linear-gradient(to bottom right, hsl(222.2 84% 4.9%), hsl(217.2 32.6% 17.5%));
    }
    
    .title {
        color: hsl(210 40% 98%);
    }
    
    .subtitle {
        color: hsl(215 20.2% 65.1%);
    }
    
    .btn-primary {
        background: hsl(210 40% 98%);
        color: hsl(222.2 84% 4.9%);
    }
    
    .btn-primary:hover {
        background: hsl(210 40% 98% / 0.9);
    }
}
