/* FullySyS Mail - Custom Login Page Styles */
/* Brand Colors: Navy Blue #2B3674, Accent #4A5FC1 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

/* Hide original Zimbra elements */
.LoginScreen,
#modifiedLogin {
    display: none !important;
}

/* Main Container - Split Screen */
.fullysys-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Hero */
.fullysys-hero {
    display: none;
    width: 50%;
    background: linear-gradient(135deg, #1a2a4e 0%, #2B3674 40%, #3d4a8a 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .fullysys-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem;
    }
}

.fullysys-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.fullysys-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 400px;
}

.fullysys-hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.fullysys-hero h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.fullysys-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.fullysys-hero-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Right Side - Form */
.fullysys-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 1024px) {
    .fullysys-form-side {
        width: 50%;
    }
}

/* Mobile Logo */
.fullysys-mobile-logo {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

@media (min-width: 1024px) {
    .fullysys-mobile-logo {
        display: none;
    }
}

.fullysys-mobile-logo img {
    height: 36px;
    width: auto;
}

/* Form Container */
.fullysys-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .fullysys-form-container {
        padding: 3rem;
    }
}

.fullysys-form-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Form Header */
.fullysys-form-header {
    margin-bottom: 2rem;
}

.fullysys-form-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.fullysys-form-header p {
    font-size: 1rem;
    color: #6b7280;
}

/* Form Styles */
.fullysys-form .form-group {
    margin-bottom: 1.25rem;
}

.fullysys-form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.fullysys-form input[type=text],
.fullysys-form input[type=email],
.fullysys-form input[type=password] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    height: 48px;
}

.fullysys-form input:focus {
    outline: none;
    border-color: #2B3674;
    box-shadow: 0 0 0 3px rgba(43, 54, 116, 0.1);
}

.fullysys-form input::placeholder {
    color: #9ca3af;
}

/* Password wrapper */
.fullysys-password-wrapper {
    position: relative;
}

.fullysys-password-wrapper input {
    padding-right: 4.5rem;
}

.fullysys-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.fullysys-password-toggle:hover {
    color: #2B3674;
}

/* Remember me & Forgot password */
.fullysys-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.25rem 0;
    font-size: 0.9375rem;
}

.fullysys-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    cursor: pointer;
}

.fullysys-remember input[type=checkbox] {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    accent-color: #2B3674;
    cursor: pointer;
}

.fullysys-forgot {
    color: #2B3674;
    text-decoration: none;
    font-weight: 500;
}

.fullysys-forgot:hover {
    text-decoration: underline;
}

/* Submit Button */
.fullysys-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #2B3674;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    height: 48px;
}

.fullysys-submit:hover {
    background: #1a2a4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 54, 116, 0.3);
}

.fullysys-submit:active {
    transform: translateY(0);
}

.fullysys-submit svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Error Message */
.fullysys-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

/* Footer Links */
.fullysys-form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9375rem;
    color: #6b7280;
}

.fullysys-form-footer a {
    color: #2B3674;
    font-weight: 500;
    text-decoration: none;
}

.fullysys-form-footer a:hover {
    text-decoration: underline;
}

.fullysys-legal {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.fullysys-legal a {
    color: #6b7280;
    text-decoration: underline;
}

.fullysys-legal a:hover {
    color: #2B3674;
}

/* Two Factor Auth Styles */
.fullysys-tfa-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.fullysys-tfa-desc {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Client selector (hide it) */
.fullysys-client-select {
    display: none;
}
