/* Reset & Base Styles */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}

.space {
    width: 100%;
    height: 20px;
    overflow: hidden;
}

.login-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    justify-content: center;
    padding: 0 1rem;
}


/* Brand Header */

.brand-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #94a3b8;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    margin-bottom: 0.75rem;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}


/* Login Card */

.login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    color: #1e293b;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.75rem;
    color: #0f172a;
}


/* Form Styling */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}


/* Input Fields */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrapper input.text-right {
    text-align: right;
}

.input-wrapper input:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-icon {
    position: absolute;
    right: 0.875rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}


/* Custom Checkbox */

.checkbox-group {
    margin-bottom: 1.5rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 1.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #475569;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    right: 0;
    height: 18px;
    width: 18px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #e2e8f0;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #2563eb;
    border-color: #2563eb;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}


/* Submit Button */

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}

.submit-btn:active {
    transform: scale(0.99);
}


/* Card Footer */

.card-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.card-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    margin-right: 0.25rem;
}

.card-footer a:hover {
    text-decoration: underline;
}


/* Page Footer */

.page-footer {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
}

.page-footer a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-footer a:hover {
    color: #94a3b8;
}