/**
 * Skitterskoon Custom Login Page Styles
 * Branded WordPress login page
 */

/* Background */
body.login {
    background: linear-gradient(135deg, #f8fcfb 0%, #e8f4f2 100%);
    min-height: 100vh;
}

/* Login container */
#login {
    width: 400px;
    padding: 8% 0 0;
}

/* Logo replacement */
#login h1 a {
    background-image: url('../images/logo.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    width: 200px;
    height: 80px;
    margin-bottom: 20px;
}

/* Form container */
#loginform,
#registerform,
#lostpasswordform {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(55, 114, 110, 0.15);
    padding: 30px 24px;
    margin-top: 20px;
}

/* Form labels */
#loginform label,
#registerform label,
#lostpasswordform label {
    color: #37726E;
    font-weight: 500;
    font-size: 14px;
}

/* Form inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#registerform input[type="text"],
#registerform input[type="email"],
#lostpasswordform input[type="text"] {
    background: #f8fcfb;
    border: 2px solid #e8f4f2;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-top: 8px;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus,
#registerform input[type="text"]:focus,
#registerform input[type="email"]:focus,
#lostpasswordform input[type="text"]:focus {
    border-color: #7EC7A8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(126, 199, 168, 0.2);
    outline: none;
}

/* Password toggle button */
.wp-pwd .button.wp-hide-pw {
    background: transparent;
    border: none;
    color: #37726E;
    padding: 0 12px;
}

.wp-pwd .button.wp-hide-pw:hover {
    background: transparent;
    color: #7EC7A8;
}

/* Submit button */
#wp-submit,
.button.button-primary {
    background: linear-gradient(135deg, #37726E 0%, #2a5652 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(55, 114, 110, 0.3);
}

#wp-submit:hover,
.button.button-primary:hover {
    background: linear-gradient(135deg, #7EC7A8 0%, #5eaa87 100%);
    box-shadow: 0 6px 20px rgba(126, 199, 168, 0.4);
    transform: translateY(-2px);
}

#wp-submit:active,
.button.button-primary:active {
    transform: translateY(0);
}

/* Remember me checkbox */
.forgetmenot {
    margin-top: 15px;
}

.forgetmenot label {
    color: #666666;
    font-size: 13px;
}

#rememberme {
    accent-color: #37726E;
}

/* Navigation links below form */
#nav,
#backtoblog {
    padding: 0 24px;
    margin-top: 16px;
}

#nav a,
#backtoblog a {
    color: #37726E;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

#nav a:hover,
#backtoblog a:hover {
    color: #7EC7A8;
}

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

.privacy-policy-page-link a {
    color: #37726E;
    font-size: 13px;
}

.privacy-policy-page-link a:hover {
    color: #7EC7A8;
}

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

.language-switcher select {
    background: #ffffff;
    border: 2px solid #e8f4f2;
    border-radius: 8px;
    padding: 8px 12px;
    color: #37726E;
    font-size: 14px;
}

.language-switcher .button {
    background: #37726E;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
}

.language-switcher .button:hover {
    background: #7EC7A8;
}

/* Error messages */
#login_error,
.message {
    border-left: 4px solid #37726E;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    margin-bottom: 20px;
}

#login_error {
    border-left-color: #d63638;
}

.message {
    border-left-color: #7EC7A8;
}

/* Two-factor authentication styles (if plugin active) */
.backup-methods-wrap {
    margin-top: 20px;
}

/* Admin color scheme notification hide */
.interim-login #login_error {
    margin-bottom: 15px;
}

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

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

    #login h1 a {
        width: 150px;
        height: 60px;
    }
}

/* Animation for form appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#loginform,
#registerform,
#lostpasswordform {
    animation: fadeInUp 0.5s ease-out;
}

/* Hide WordPress logo title text */
#login h1 a {
    text-indent: -9999px;
    overflow: hidden;
}
