/* ==========================================================================
   My Theme - Custom Login Styling (wp-login.php & Frontend Form)
   ========================================================================== */

/* Modern wp-login.php Overhaul */
body.login {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: #e2e8f0;
}

body.login #login {
    width: 100% !important;
    max-width: 440px !important;
    padding: 0 !important;
    margin: auto !important;
}

body.login h1 {
    text-align: center;
    margin-bottom: 24px;
}

body.login h1 a {
    width: 100% !important;
    max-width: 280px !important;
    height: 70px !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin: 0 auto !important;
    color: #ffffff !important;
    text-indent: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

body.login h1 a:hover {
    transform: scale(1.02);
}

/* Modern Form Container */
body.login form {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
    padding: 36px 32px !important;
    margin-top: 0 !important;
}

body.login form label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"] {
    background-color: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    color: #0f172a !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    width: 100% !important;
    margin-top: 4px !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    background-color: #ffffff !important;
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

body.login .forgetmenot {
    float: none !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.login .forgetmenot label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
    cursor: pointer;
}

body.login .forgetmenot input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border-radius: 4px !important;
    border: 1.5px solid #cbd5e1 !important;
    accent-color: #2563eb !important;
    margin: 0 !important;
}

body.login .submit {
    float: none !important;
    clear: both !important;
}

body.login input[type="submit"] {
    width: 100% !important;
    background: #2563eb !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 13px 20px !important;
    cursor: pointer !important;
    text-shadow: none !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.2s ease !important;
}

body.login input[type="submit"]:hover,
body.login input[type="submit"]:focus {
    background: #1d4ed8 !important;
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-1px) !important;
}

body.login #nav,
body.login #backtoblog {
    text-align: center !important;
    padding: 12px 0 0 !important;
    margin: 8px 0 0 !important;
    font-size: 0.875rem !important;
}

body.login #nav a,
body.login #backtoblog a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #38bdf8 !important;
}

/* Error / Notice Messages */
body.login #login_error,
body.login .message,
body.login .success {
    border-radius: 10px !important;
    border: none !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
    font-size: 0.875rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
body.login #login_error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-left: 4px solid #ef4444 !important;
}
body.login .message {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-left: 4px solid #3b82f6 !important;
}

/* Frontend Login Card Component */
.my-theme-login-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    width: 100%;
}

.my-theme-login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    padding: 40px;
    width: 100%;
    max-width: 460px;
}

.my-theme-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.my-theme-login-header .login-logo {
    margin-bottom: 16px;
    display: inline-block;
}

.my-theme-login-header .login-logo img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
}

.my-theme-login-header h2 {
    font-size: 1.65rem;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 700;
}

.my-theme-login-header p {
    color: #64748b;
    font-size: 0.925rem;
    margin-bottom: 0;
}

.my-theme-form-group {
    margin-bottom: 20px;
    position: relative;
}

.my-theme-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.my-theme-input-wrap {
    position: relative;
}

.my-theme-input {
    width: 100%;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.975rem;
    transition: all 0.2s ease;
}

.my-theme-input:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.my-theme-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
}
.my-theme-toggle-password:hover {
    color: #334155;
}

.my-theme-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.my-theme-remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.my-theme-remember-wrap input[type="checkbox"] {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    accent-color: #2563eb;
    cursor: pointer;
}

.my-theme-forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.my-theme-forgot-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.my-theme-btn-primary {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.my-theme-btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.my-theme-login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.my-theme-login-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.my-theme-login-footer a:hover {
    text-decoration: underline;
}

.my-theme-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.my-theme-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.my-theme-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.my-theme-logged-in-box {
    text-align: center;
    padding: 20px 0;
}

.my-theme-user-avatar {
    margin-bottom: 16px;
}

.my-theme-user-avatar img {
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid #e2e8f0;
}

.my-theme-user-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.my-theme-btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.my-theme-btn-secondary:hover {
    background: #e2e8f0;
}
