{
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #242424, transparent 45%),
        radial-gradient(circle at bottom right, #171717, transparent 45%),
        #080808;

    color: #ffffff;
}

/* LOGIN */

.login-container,
.private-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card,
.private-card {
    width: 100%;
    max-width: 420px;

    padding: 40px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;

    background: rgba(20, 20, 20, 0.78);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55);

    animation: appear 0.45s ease;
}

.logo {
    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 30px;
}

h1 {
    margin: 0;
    text-align: center;
    font-size: 30px;
}

.subtitle {
    margin: 10px 0 30px;

    text-align: center;

    color: #999;

    font-size: 15px;
}

.input-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    color: #ccc;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;

    padding: 15px 50px 15px 16px;

    border: 1px solid #333;
    border-radius: 12px;

    outline: none;

    background: #111;
    color: white;

    font-size: 16px;

    transition: 0.2s;
}

.password-wrapper input:focus {
    border-color: #777;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.05);
}

.toggle-password {
    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: white;

    cursor: pointer;

    font-size: 18px;
}

.toggle-password:hover {
    background: rgba(255, 255, 255, 0.08);
}

.login-button {
    width: 100%;

    margin-top: 22px;

    padding: 15px;

    border: 0;
    border-radius: 12px;

    background: white;
    color: black;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.2s,
        opacity 0.2s;
}

.login-button:hover {
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

.error {
    margin-bottom: 20px;

    padding: 12px;

    border-radius: 10px;

    background: rgba(255, 70, 70, 0.12);

    border: 1px solid rgba(255, 70, 70, 0.25);

    color: #ff8585;

    font-size: 14px;

    text-align: center;
}

/* PRIVATE AREA */

.private-card {
    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(80, 220, 120, 0.12);

    color: #72e89a;

    font-size: 35px;
}

.private-card p {
    color: #aaa;
}

.logout-button {
    display: inline-block;

    margin-top: 20px;

    padding: 12px 24px;

    border-radius: 10px;

    background: #222;

    color: white;

    text-decoration: none;

    transition: 0.2s;
}

.logout-button:hover {
    background: #333;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 500px) {

    .login-card,
    .private-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    h1 {
        font-size: 26px;
    }
}

/* DASHBOARD */

.dashboard {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    text-align: left;
    font-size: 34px;
}

.dashboard-header p {
    margin: 8px 0 0;
    color: #999;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.dashboard-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 24px;

    min-height: 120px;

    text-decoration: none;
    color: white;

    background: rgba(20, 20, 20, 0.78);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);

    background: rgba(35, 35, 35, 0.9);

    border-color: rgba(255, 255, 255, 0.25);
}

.card-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 27px;
}

.card-content {
    flex: 1;
}

.card-content h2 {
    margin: 0 0 6px;

    font-size: 18px;
}

.card-content p {
    margin: 0;

    color: #999;

    font-size: 14px;
}

.card-arrow {
    font-size: 24px;
    color: #777;

    transition: transform 0.2s ease;
}

.dashboard-card:hover .card-arrow {
    transform: translateX(5px);
    color: white;
}

@media (max-width: 600px) {

    .dashboard {
        width: min(100% - 30px, 1100px);
        padding: 30px 0;
    }

    .dashboard-header {
        align-items: flex-start;
    }

    .dashboard-header h1 {
        font-size: 28px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
