﻿/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.5;
}

.login-margin-bottom{
    margin-bottom:20px !important;
}

.validate-color {
    color: #dc3545;
}

/* Main container with gradient background */
.main-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
}

/* Login card */
.login-card {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Card header */
.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
    text-align: center;
}

.card-logo {
    width: 200px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.card-description {
    color: #6b7280;
    font-size: 18px;
}

/* Card content */
.card-content {
    padding: 1.5rem;
}

/* Form styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 16px;
    color: #111827;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #111827;
}

/* Password input with toggle button */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #4b5563;
}

/* Remember me checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.875rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 1rem;
    width: 1rem;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #9ca3af;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2563eb;
    border-color: #2563eb;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
    left: 5px;
    top: 2px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: #4b5563;
    font-size: 18px;
}

/* Submit button */
.submit-button {
    width: 100%;
    padding: 0.625rem 1.25rem;
    background-color: #111827;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.5rem;
}

.submit-button:hover {
    background-color: #111827de;
}

#passwordToggleIcon {
    color: #111827;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background-color: white;
    color: #6b7280;
    font-size: 16px;
}

/* Social login buttons */
.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 18px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.2s;
}

.social-button:focus {
    outline: none;
    border-color: #111827;
}

.social-button:hover {
    background-color: #f9fafb;
}

.social-button i {
    font-size: 18px;
}

/* Card footer */
.card-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.signup-text {
    color: #6b7280;
    font-size: 16px;
}

.signup-link {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.signup-link:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card {
        max-width: 100%;
    }

    .card-logo {
        width: 180px;
        margin-bottom: 15px;
    }

    .social-login {
        display: flex;
        flex: auto;
        flex-wrap: wrap;
    }
}
