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

body {
    font-family: Arial, sans-serif;
    background: #fbfaf8;
    color: #0f1645;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    position: relative;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #0f1645;
    text-decoration: none;
    font-size: 14px;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 430px;
    padding: 40px;
    border: 1px solid #e7e4e1;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.auth-card h1 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #88827d;
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.auth-tabs button {
    flex: 1;
    padding: 12px;
    border: 1px solid #e7e4e1;
    background: white;
    color: #0f1645;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.auth-tabs button.active {
    background: #0f1645;
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 13px;
    border: 1px solid #e7e4e1;
    border-radius: 7px;
    font-size: 15px;
}

.form-group input:focus {
    outline: 2px solid #33ddff;
    border-color: transparent;
}

#submitButton {
    width: 100%;
    padding: 14px;
    background: #0f1645;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

#submitButton:hover {
    background: #252e70;
}

#submitButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#authMessage {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.hidden {
    display: none;
}

@media (max-width: 500px) {
    .auth-card {
        padding: 25px;
    }

    .back-link {
        top: 15px;
        left: 15px;
    }
}