﻿body {
    min-height: 100vh;
    background-image: url("../../img/bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
    /* затемняющий слой */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        /*background: rgba(0,0,0,0.45);
            backdrop-filter: blur(1px);*/
        z-index: -1;
    }

input {
    background-color: #9cf4d65e;
    width: 100%;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    width: 420px;
    background: #75887b;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 4px 4px 4px rgb(59 59 59 / 75%);
}

.auth-title {
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
    font-weight: 400;
}

.auth-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

    .auth-group label {
        font-size: 14px;
        margin-bottom: 4px;
        color: #ffffff;
    }

    .auth-group input {
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #ddd;
        font-size: 16px;
        transition: 0.2s;
        color: #ffffff;
        letter-spacing: 1px;
        font-weight: 200;
    }

        .auth-group input:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
        }

.auth-button {
    width: 100%;
    padding: 11px;
    background: #007bff;
    border: none;
    color: white;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 5px;
}

    .auth-button:hover {
        background: #0069d9;
    }

.auth-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

    .auth-footer a {
        color: #dadada;
        text-decoration: none;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

footer, .addpostbutton {
    display: none;
}



.auth-card {
    position: relative; /* обязательно */
}

/* сама приколка */
.pin {
    position: absolute;
    top: 18px;
    left: 51%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e9c354, #81630b);
    box-shadow: 0 6px 4px rgba(0,0,0,0.4), inset 0 2px 3px rgba(255,255,255,0.3);
    z-index: 10;
}
    .pin::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 5px;
        width: 6px;
        height: 6px;
        background: rgba(255,255,255,0.7);
        border-radius: 50%;
    }

    .pin:hover {
        transform: translateX(-50%) rotate(10deg);
        transition: 0.2s;
    }


@keyframes swing {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(0.5deg);
    }

    40% {
        transform: rotate(-0.5deg);
    }

    60% {
        transform: rotate(0.25deg);
    }

    80% {
        transform: rotate(-0.25deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.swing {
    animation: swing 1.5s ease;
    transform-origin: top center;
}