*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{
    background:#1f3556;
    color:white;
    padding:20px;
    min-height:100vh;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 100px auto 0;
}

.logo img {
    width: 160px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.subtitle{
    opacity:0.8;
    margin-bottom:30px;
    font-size: 18px;
}

.card {
    background: #f4f5f7;
    color: black;
    padding: 40px;
    border-radius: 20px;
    width: 480px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: left;
    margin: 20px auto;
}

.card h2{
    font-size: 28px;
    margin-bottom: 15px;
    color: #1f3556;
}

.description{
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.field{
    width: 100%;
}

label{
    font-size:14px;
    font-weight:500;
    display:block;
    margin-bottom:5px;
}

input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    font-size: 16px;
}

input:focus {
    border-color: #f4a621;
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #f4a621;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #e6891e;
    transform: scale(1.02);
}

.switch {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #444;
}

.switch a {
    color: #1f3556;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.switch a:hover {
    color: #f4a621;
}

#alertBox, #successBox {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: top 0.5s ease, opacity 0.3s ease;
    z-index: 9999;
    opacity: 0;
}

#alertBox.show, #successBox.show {
    top: 20px;
    opacity: 1;
}

#alertBox {
    background: #e74c3c;
}

#successBox {
    background: #27ae60;
}

@media (max-width: 768px) {
    .card {
        width: 90%;
        padding: 20px;
    }

    .logo img {
        width: 130px;
    }

    .card h2{
        font-size: 24px;
    }

    .subtitle{
        text-align: center;
    }
}