/* TradeJobs Command Center - Custom Login Page */

body.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

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

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

/* Logo */
.login h1 a {
    background-image: none !important;
    width: 100%;
    height: auto;
    text-indent: 0;
    font-size: 32px;
    font-weight: 700;
    color: #004aad;
    text-align: center;
    margin-bottom: 10px;
}

.login h1 a::before {
    content: "TradeJobs";
    display: block;
}

.login h1 a::after {
    content: "Command Center";
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-top: 5px;
}

/* Input Fields */
.login input[type="text"],
.login input[type="password"] {
    background: #f5f7fa;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: #ffffff;
    border-color: #004aad;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
    outline: none;
}

/* Labels */
.login label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

/* Submit Button */
.login .button-primary {
    background: #004aad;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

.login .button-primary:hover {
    background: #003080;
    box-shadow: 0 6px 16px rgba(0, 74, 173, 0.4);
    transform: translateY(-2px);
}

.login .button-primary:active {
    transform: translateY(0);
}

/* Remember Me */
.login .forgetmenot {
    margin-bottom: 20px;
}

.login .forgetmenot label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

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

.login #nav a,
.login #backtoblog a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.login .message {
    border-left-color: #10b981;
}

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

.login .privacy-policy-page-link a {
    color: #ffffff;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

/* Responsive */
@media screen and (max-width: 500px) {
    #login {
        width: 90%;
        padding: 5% 0 0;
    }
    
    .login form {
        padding: 30px 20px;
    }
    
    .login h1 a {
        font-size: 28px;
    }
}

/* Loading State */
.login .button-primary.loading {
    position: relative;
    color: transparent;
}

.login .button-primary.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional Branding */
.login::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}
