﻿/* Reset & base */
* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI";
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2f3, #d9e4ec);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout */
.login-wrapper {
    width: 100%;
    padding: 16px;
}

.login-card {
    max-width: 380px;
    margin: auto;
    background: #a2c6d1;
    padding: 32px 24px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
}

/* Logo */
.logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 72px; /* default (mobile) */
    max-width: 40%;
    height: auto;
}

/* Typography */
h2 {
    margin: 0;
    font-size: 1.4rem;
}

.subtitle {
    color: #666;
    margin: 8px 0 24px;
    font-size: 0.95rem;
}

/* Form */
input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

    input:focus {
        outline: none;
        border-color: #4a90e2;
    }

button {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

    button:hover {
        background: #3b7dc4;
    }

.error {
    color: #c0392b;
    margin-top: 10px;
    font-size: 0.9rem;
}

.success {
    color: #27ae60;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.validation-error {
    color: #c0392b;
    font-size: 0.85rem;
    display: block;
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: left;
}

.register-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.register-link p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.register-link a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* -----------------------------
   Tablet & up
------------------------------*/
@media (min-width: 600px) {
    .login-card {
        padding: 40px 32px;
    }

    .logo {
        width: 90px;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 1.6rem;
    }
}

/* -----------------------------
   Desktop & large screens
------------------------------*/
@media (min-width: 1024px) {
    .login-card {
        max-width: 420px;
    }

    .logo {
        width: 110px;
    }
}


.logo {
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}