  :root{
    --color-bg: #161410;
    --color-sec3-bg: #000543;
    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --radius-card: 14px;
}

*{
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-sec3-bg));
}

.login-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 16px;
}

.login-container {
    background: #ffffff;
    padding: 32px 28px 28px;
    border-radius: var(--radius-card);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
    text-align: center;
}

img.logo {
    max-width: 200px;
    margin-bottom: 20px;
    height: auto;
    background: black !important;
    border-radius: 17px;
    padding: 2%;
}

.login-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 18px;
}

form {
    margin-top: 8px;
}

input {
    width: 100%;
    padding: 10px 11px;
    margin: 7px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.link {
    display: inline-block;
    margin-top: 12px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.link:hover {
    text-decoration: underline;
}

.message {
    font-size: 0.85rem;
    margin-top: 10px;
}

.message.error {
    color: #c62828;
}

.message.success {
    color: #2e7d32;
}

.first-time-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    text-align: center;
}

.first-time-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.first-time-text {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.btn-outline {
    display: inline-block;
    width: 100%;
    padding: 9px;
    border-radius: 6px;
    border: 1px solid var(--color-primary);
    background: #ffffff;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

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

@media (max-width: 480px) {
    .login-container {
        padding: 24px 18px 22px;
    }

    img.logo {
        max-width: 170px;
    }
}
