/* Strona logowania - wyniesione z includes/class-login-styling.php */
body.login {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login form container */
#login {
    padding-top: 3%;
    width: 400px;
}

/* Hide default WordPress logo */
#login h1 {
    display: none;
}

/* Create custom logo container above the form */
.login form {
    margin-top: 0;
    position: relative;
}

.login form::before {
    content: '';
    display: block;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 40px 30px 30px;
    margin: 0 0 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-image:
        var(--gama-login-logo-1),
        var(--gama-login-logo-2);
    background-size: 240px auto, 140px auto;
    background-position: center 30px, center 145px;
    background-repeat: no-repeat, no-repeat;
    height: 250px;
    margin-bottom: -12px;
}

/* Login form styling */
.login form {
    background: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 40px 30px 30px;
}

/* Form title styling */
.login form h2 {
    display: none;
}

/* Input fields */
.login form .input,
.login input[type="text"],
.login input[type="password"] {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: #ffffff;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.08);
    outline: none;
}

/* Labels */
.login label {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    margin-top: 16px;
    display: block;
}

/* First label shouldn't have top margin */
.login .user-login-wrap label {
    margin-top: 0;
}

/* User login wrapper */
.user-pass-wrap {
    margin-bottom: 20px;
}

.user-login-wrap {
    margin-bottom: 16px;
}

/* Submit button */
.login .button-primary {
    background: #2c3e50;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.25);
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #34495e;
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.35);
    transform: translateY(-2px);
}

.login .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.25);
}

/* Remember me checkbox */
.login .forgetmenot {
    margin-top: 16px;
    margin-bottom: 16px;
}

.login .forgetmenot label {
    font-weight: normal;
    font-size: 13px;
    color: #6c757d;
}

/* Links container */
#nav,
#backtoblog {
    text-align: center;
    margin: 16px 0;
}

/* Links */
.login #nav a,
.login #backtoblog a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #2c3e50;
}

/* Privacy policy link */
.privacy-policy-page-link {
    color: #6c757d;
    text-align: center;
    display: block;
    margin-top: 20px;
    font-size: 13px;
}

/* Messages */
.login .message,
.login #login_error {
    border-left: 4px solid #2c3e50;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
}

.login #login_error {
    border-left-color: #dc3545;
}

.login .message {
    border-left-color: #28a745;
}

/* Show/hide password button */
.wp-hide-pw {
    display: flex;
    align-items: center;
}

.wp-hide-pw .dashicons {
    width: 20px;
    height: 20px;
}

/* Language switcher */
.language-switcher {
    margin-top: 20px;
}

/* Responsive adjustments */
@media screen and (max-width: 500px) {
    #login {
        width: 90%;
        padding-top: 5%;
    }

    .login form::before {
        padding: 30px 20px 20px;
        background-size: 180px auto, 110px auto;
        background-position: center 25px, center 115px;
        height: 200px;
    }

    .login form {
        padding: 25px 20px 20px;
    }
}
