/* ===============================
   WordPress Login & Registration Page Customization
   Consultancy Application Manager Plugin
   =============================== */

/* Overall body styling */
body.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Main login container */
#login {
    width: 420px;
    padding: 8% 0 0;
    margin: auto;
}

/* Login form container */
.login form {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Logo styling */
.login h1 a {
    background-size: contain;
    background-position: center center;
    height: 80px;
    width: 100%;
    margin-bottom: 30px;
    padding: 0;
    text-indent: -9999px;
    outline: none;
    overflow: hidden;
    display: block;
}

/* Form labels */
.login label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Input fields */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #f7f7f7;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    background: #ffffff;
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Submit button */
.login input[type="submit"],
.wp-core-ui .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 20px;
    width: 100%;
    height: auto;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login input[type="submit"]:hover,
.wp-core-ui .button-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.login input[type="submit"]:active,
.wp-core-ui .button-primary:active {
    transform: translateY(0);
}

/* Remember me checkbox */
.login .forgetmenot {
    margin-bottom: 20px;
}

.login input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.login .forgetmenot label {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
}

/* Links styling */
.login #nav a,
.login #backtoblog a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

/* Navigation and back to blog links container */
.login #nav,
.login #backtoblog {
    text-align: center;
    padding: 15px 0;
}

/* Message boxes */
.login .message,
.login .success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 8px;
    padding: 15px 20px;
    color: #2e7d32;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.1);
}

/* Error messages */
.login #login_error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 8px;
    padding: 15px 20px;
    color: #c62828;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.1);
}

/* Privacy policy link */
.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 20px;
}

.login .privacy-policy-page-link a {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login .privacy-policy-page-link a:hover {
    text-decoration: underline;
}

/* Language switcher */
.login .language-switcher {
    text-align: center;
    margin-top: 20px;
}

/* Registration form specific styles */
body.login.wp-core-ui.register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Registration form adjustments */
#registerform {
    background: #ffffff;
}

#registerform p {
    margin-bottom: 20px;
}

#registerform .description {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: -15px;
    margin-bottom: 20px;
}

/* Register button specific styling */
#registerform input[type="submit"] {
    margin-top: 10px;
}

/* Lost password form */
#lostpasswordform {
    background: #ffffff;
}

/* Responsive design */
@media screen and (max-width: 480px) {
    #login {
        width: 90%;
        padding: 5% 0;
    }

    .login form {
        padding: 40px 30px;
    }

    .login h1 a {
        height: 60px;
        margin-bottom: 20px;
    }
}

/* Additional hover effects */
.login input[type="text"]:hover,
.login input[type="password"]:hover,
.login input[type="email"]:hover {
    border-color: #d0d0d0;
}

/* Focus improvements for accessibility */
.login input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Loading state for submit button */
.login input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
