/**
 * GGwebdesign Dashboard - Nowoczesna strona logowania
 */

/* Tło - gradient */
body.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kontener logowania */
#login {
    padding: 0;
    width: 400px;
}

/* Formularz - nowoczesna karta */
#loginform,
#lostpasswordform,
#registerform {
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    margin-top: 20px;
}

/* Logo - ukryj domyślne lub zmień */
#login h1 a {
    background-image: none !important;
    width: auto;
    height: auto;
    text-indent: 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

#login h1 a::before {
    content: 'GGwebdesign';
    display: block;
}

/* Inputy - nowoczesny wygląd */
#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="text"],
#registerform input[type="text"],
#registerform input[type="email"] {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#lostpasswordform input[type="text"]:focus,
#registerform input[type="text"]:focus,
#registerform input[type="email"]:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Label - lepszy wygląd */
#loginform label,
#lostpasswordform label,
#registerform label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

/* Przycisk logowania - gradient */
#wp-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-shadow: none;
    height: auto;
}

#wp-submit:hover,
#wp-submit:focus {
    background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* Checkbox - lepszy wygląd */
.login .forgetmenot input[type="checkbox"] {
    border-radius: 4px;
}

.login .forgetmenot label {
    font-size: 14px;
    color: #6b7280;
}

/* Linki - nowoczesne kolory */
#nav a,
#backtoblog a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

#nav a:hover,
#backtoblog a:hover {
    opacity: 0.8;
}

#nav,
#backtoblog {
    text-align: center;
    margin: 20px 0;
}

/* Komunikaty błędów - nowoczesne */
#login_error,
.login .message,
.login .success {
    border: none;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

#login_error {
    border-left: 4px solid #ef4444;
}

.login .message,
.login .success {
    border-left: 4px solid #10b981;
}

/* Language switcher */
.login .language-switcher {
    text-align: center;
    margin-top: 20px;
}

.login .language-switcher label {
    color: #fff;
    font-weight: 500;
}

.login .language-switcher select {
    margin-left: 10px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
}

/* Privacy link */
.privacy-policy-page-link {
    text-align: center;
    margin-top: 20px;
}

.privacy-policy-page-link a {
    color: #fff !important;
}

/* Interim login */
.interim-login #login {
    margin: 0 auto;
}

.interim-login.login h1 a {
    width: auto;
}

/* Responsywność */
@media screen and (max-width: 480px) {
    #login {
        width: 90%;
        padding: 0 20px;
    }

    #loginform,
    #lostpasswordform,
    #registerform {
        padding: 30px 20px;
    }
}

/* Loading state */
.login form.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
}
