/**
 * Custom Login Page Styles
 * Hobart Theme
 */

/* Body and Background */
body.login {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-image: url(../images/bg-login.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Logo */
.login h1 {
    text-align: center;
    margin-bottom: 30px;
}

.login h1 a {
    background-image: url(../images/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 220px;
    height: 90px;
    margin: 0 auto;
    display: block;
    text-indent: -9999px;
    outline: none;
}

/* Login Container */
#login {
    width: 420px;
    padding: 0;
    margin: auto;
    position: relative;
    z-index: 1;
}

/* Login Form */
.login form {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-top: 0;
}

/* Form Inputs */
.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    font-size: 16px;
    width: 100%;
    padding: 14px 18px;
    margin: 0 0 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    background: #ffffff;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* Password field with toggle button */
.login .user-pass-wrap {
    position: relative;
}

.login .user-pass-wrap input[type="password"],
.login .user-pass-wrap input[type="text"] {
    padding-right: 55px !important;
}

/* Password toggle button */
.login .wp-hide-pw,
.login button[type="button"].wp-hide-pw,
.login .wp-pwd button.wp-hide-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-65%);
    margin: 0;
    z-index: 10;
    background: transparent !important;
    border: none !important;
    color: #6c757d !important;
    padding: 8px !important;
    width: 32px !important;
    height: 32px !important;
    box-shadow: none !important;
    font-size: 16px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.login .wp-hide-pw:hover,
.login button[type="button"].wp-hide-pw:hover {
    color: #0066cc !important;
    background: rgba(0, 102, 204, 0.1) !important;
    transform: translateY(-65%) !important;
}

/* Dashicons for password toggle */
.login .wp-hide-pw .dashicons,
.login button.wp-hide-pw .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
}

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

/* Remember Me Checkbox */
.login form .forgetmenot {
    margin: 20px 0;
    float: left;
    display: flex;
    align-items: center;
}

.login form .forgetmenot input[type="checkbox"] {
    margin: 0 8px 0 0;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.login form .forgetmenot label {
    font-weight: 400;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

/* Submit Button */
.login .button-primary {
    background: #ffffff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    height: auto;
    padding: 14px 32px;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    float: none;
}

.login .button-primary:hover {
    background: #e74c3c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.login .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

/* Links */
.login #nav,
.login #backtoblog {
    text-align: center;
    padding: 0;
    margin-top: 20px;
}

.login #nav a,
.login #backtoblog a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 0 5px;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Messages */
.login .message,
.login .success,
.login #login_error {
    border-left: 4px solid;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    padding: 18px;
}

.login .message {
    border-color: #00a9e0;
    background: linear-gradient(135deg, #e3f7fd 0%, #ffffff 100%);
}

.login .success {
    border-color: #46b450;
    background: linear-gradient(135deg, #ecf7ed 0%, #ffffff 100%);
}

.login #login_error {
    border-color: #dc3232;
    background: linear-gradient(135deg, #fbeaea 0%, #ffffff 100%);
}

/* Private Site Notice */
.private-site-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    color: #333333;
    max-width: 400px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.private-site-notice svg {
    flex-shrink: 0;
    stroke: #333333;
}

.private-site-notice p {
    margin: 0;
    color: #333333;
}

/* Language Selector - Hidden */
.login .language-switcher,
.login #language-switcher {
    display: none !important;
}

/* Privacy Policy Link */
.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 25px;
}

.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    #login {
        width: 100%;
        max-width: 400px;
    }
    
    .login form {
        padding: 30px 25px;
    }
}