* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/image/s2.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
    z-index: 0;
}

.background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(69, 103, 137, 0.8) 0%, rgba(52, 73, 94, 0.9) 100%);
}

.sign-in-card {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 48px;
    width: 90%;
    max-width: 440px;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 600;
    color: #c65d21;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 11px;
    color: #666;
    margin-top: -2px;
}

h1 {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
}

.input-field {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #d1d1d1;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    background: transparent;
}

.input-field:focus {
    border-bottom: 2px solid #0078d4;
}

.input-field::placeholder {
    color: #757575;
}

.forgot-link {
    display: inline-block;
    color: #0078d4;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #005a9e;
    text-decoration: underline;
}

.next-button {
    width: 100%;
    padding: 12px 24px;
    background: #70181f;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 24px;
}

.next-button:hover {
    background: #70181fcc;
}

.next-button:active {
    background: #70181fcc;
}

.sign-in-options {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid #d1d1d1;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sign-in-options:hover {
    background: #f5f5f5;
}

.key-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.sign-in-options-text {
    font-size: 15px;
    color: #1a1a1a;
}

.footer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    z-index: 1;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sign-in-card {
        padding: 32px 24px;
        max-width: 380px;
    }

    h1 {
        font-size: 24px;
    }

    .logo-title {
        font-size: 18px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .sign-in-card {
        padding: 24px 20px;
        width: 95%;
        max-width: 100%;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .logo {
        margin-bottom: 24px;
    }

    .logo-title {
        font-size: 16px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .footer {
        bottom: 10px;
        right: 10px;
        flex-direction: column;
        gap: 8px;
    }

    .footer-link {
        font-size: 11px;
    }
}

@media (max-height: 600px) {
    .sign-in-card {
        padding: 24px;
        max-height: 90vh;
        overflow-y: auto;
    }

    h1 {
        margin-bottom: 20px;
    }

    .logo {
        margin-bottom: 20px;
    }
}