/* File: aiAssist/login-styles.css */
/*
 * Custom styles to match the aiAssist Portal aesthetic 
 * Apply this file to the WordPress login screen using the 'login_enqueue_scripts' action.
 */

/* 1. Body and Background */
body.login {
    background-color: #1e293b; /* Match your nav-bg (Slate-800) for a clean login screen */
    font-family: 'Inter', sans-serif !important;
    color: #f8fafc; /* Light text for dark background */
}

/* 2. Custom Logo (Replace WP logo with your text) */
.login h1 {
    padding-bottom: 20px;
}

    .login h1 a {
        background-image: none !important; /* Remove default WP logo image */
        width: 100%;
        height: auto;
        font-size: 32px;
        font-weight: 800;
        line-height: 1.2;
        color: #fff; /* White text for logo */
        text-align: center;
        /* Custom aiAssist branding */
        content: "aiAssist";
    }

        .login h1 a:after {
            content: "aiAssist";
            color: #fff;
        }
        /* Highlight the 'Assist' part with the indigo accent color */
        .login h1 a:after {
            content: "ai";
            color: #fff;
            margin-right: 0;
        }

        .login h1 a:before {
            content: "Assist";
            color: #818cf8; /* Indigo-400 equivalent */
            display: inline-block;
            margin-left: -5px; /* Adjust spacing */
        }

/* 3. Login Box Styling */
#login {
    padding-top: 50px;
    padding-bottom: 50px;
}

#loginform {
    background: #fff;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px; /* Rounded corners */
    padding: 26px 24px 46px; /* Adjust padding */
    margin-top: 20px;
}

/* 4. Form Fields and Buttons */
.login label {
    font-weight: 600;
    color: #1f2937; /* Dark text for labels */
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    border: 1px solid #d1d5db; /* Gray-300 border */
    border-radius: 8px; /* Rounded inputs */
    box-shadow: none;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.login input[type="submit"] {
    background: #4f46e5; /* Indigo-600 */
    border: none;
    color: #fff;
    text-shadow: none;
    box-shadow: 0 4px #4338ca; /* Darker indigo shadow */
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    transition: background-color 0.2s, box-shadow 0.2s;
    height: auto;
}

    .login input[type="submit"]:hover,
    .login input[type="submit"]:focus {
        background: #4338ca; /* Darker hover */
        box-shadow: 0 2px #3730a3;
        transform: translateY(1px);
    }

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

    #backtoblog a, #nav a, .message a {
        color: #818cf8 !important; /* Indigo-400 links */
        text-decoration: none;
        font-weight: 500;
    }

        #backtoblog a:hover, #nav a:hover, .message a:hover {
            color: #6366f1 !important; /* Indigo-500 hover */
            text-decoration: underline;
        }

.message {
    border-left: 4px solid #3b82f6; /* Blue-500 for messages */
    background-color: #dbeafe; /* Blue-100 background */
    color: #1e40af; /* Blue-800 text */
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#login_error {
    border-left: 4px solid #ef4444; /* Red-500 border */
    background-color: #fee2e2; /* Red-100 background */
    color: #991b1b; /* Red-800 text -- readable on the light red box */
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#login_error a {
    color: #b91c1c !important; /* Red-700 links inside the error box */
}
