/* Color Palette:
   Main Background: #F8F8F8 (Off-white)
   Form Background: #FFFFFF (White, slightly cleaner)
   Text/Labels: #333333 (Dark Gray for contrast)
   Button Background: #0A0A0A (Near Black)
   Button Text: #FFFFFF (White)
   Border/Shadow: rgba(0, 0, 0, 0.1)
   Error Message: #D32F2F (Red)
*/

/* General Body/Container Styling */
.connectsync-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Full viewport height */
    background-color: #F8F8F8;
    /* Off-white background */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 20px;
    /* Padding for mobile */
    box-sizing: border-box;
    /* Include padding in element's total width and height */
}

/* Form Card Styling */
.connectsync-login-form {
    background-color: #FFFFFF;
    /* White form background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    width: 100%;
    max-width: 450px;
    /* Max width for larger screens */
    box-sizing: border-box;
}

/* Title Styling */
.connectsync-login-title {
    text-align: center;
    color: #333333;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 600;
}

/* Error Message Styling */
.connectsync-error-message {
    color: #D32F2F;
    /* Red for errors */
    background-color: #FFEBEE;
    /* Light red background */
    border: 1px solid #EF9A9A;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Specific styling for password error message */
.connectsync-password-error {
    margin-top: 10px;
    /* Space above the error message */
    font-size: 0.9em;
    padding: 8px;
    /* Slightly smaller padding */
}

/* Form Group (for labels and inputs) */
.connectsync-form-group {
    margin-bottom: 20px;
    /* Proper spacing between elements */
}

/* Label Styling */
.connectsync-label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 500;
    font-size: 0.95em;
}

/* Input Field Styling */
.connectsync-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1em;
    color: #333333;
    box-sizing: border-box;
    /* Include padding in width */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.connectsync-input:focus {
    border-color: #0A0A0A;
    /* Darker border on focus */
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.2);
    /* Subtle focus glow */
}

/* Remember Me Checkbox */
.connectsync-remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    /* More space below */
}

.connectsync-checkbox {
    margin-right: 10px;
    width: 18px;
    /* Custom size for checkbox */
    height: 18px;
    accent-color: #0A0A0A;
    /* Black checkbox */
}

.connectsync-label-inline {
    margin-bottom: 0;
    /* Override default label margin */
    color: #555555;
    font-weight: 400;
}

/* Button Styling */
.connectsync-button {
    width: 100%;
    /* Full width button */
    padding: 14px;
    background-color: #0A0A0A;
    /* Near black button */
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle button shadow */
}

.connectsync-button:hover {
    background-color: #222222;
    /* Slightly lighter black on hover */
    transform: translateY(-1px);
    /* Slight lift effect */
}

.connectsync-button:active {
    background-color: #000000;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .connectsync-login-form {
        padding: 30px 20px;
        /* Adjust padding for smaller screens */
        margin: 20px;
        /* Ensure some margin from edges */
    }

    .connectsync-login-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .connectsync-form-group {
        margin-bottom: 15px;
        /* Less space on mobile for compactness */
    }

    .connectsync-button {
        padding: 12px;
        font-size: 1em;
    }
}