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

html,
body,
#root {
    height: 100%;
    width: 100%;
}

:root {
    --accent-1: #3fb8a6;
    --accent-2: #2ecc71;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* Left Panel - Login Form */
.login-panel {
    flex: 0 0 440px;
    background: #ffffff;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.06);
}

.logo-section {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-section .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.logo-section .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-filter: drop-shadow(0 4px 12px rgba(63, 184, 166, 0.2));
            filter: drop-shadow(0 4px 12px rgba(63, 184, 166, 0.2));
}

.logo-section .logo-text {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    display: none;
}

.wheel-chair-floating {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fc8e5b;
    /* padding: 10px 10px 10px 10px; */
}

.brand-name {
    font-size: 35px;
    font-weight: 700;
    color: #3fb8a6;
    color: var(--accent-1);
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1;
}

.brand-tagline {
    font-size: 15px;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 23px;
    color: #5eaaa1;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
}

.form-group {
    margin-bottom: 18px;
}

/* Ant design input overrides to match the new style */
.form-group .ant-input,
.form-group .ant-input-affix-wrapper,
.form-group .ant-input-password input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #1e293b;
}

/* .ant-input-password-test {
    background-color: red !important;
} */

.form-group .ant-input::-webkit-input-placeholder, .form-group .ant-input-affix-wrapper::-webkit-input-placeholder {
    color: #94a3b8;
}

.form-group .ant-input::placeholder,
.form-group .ant-input-affix-wrapper::placeholder {
    color: #94a3b8;
}

.form-group .ant-input:focus,
.form-group .ant-input-affix-wrapper-focused {
    outline: none !important;
    border-color: #3fb8a6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(63, 184, 166, 0.08);
}

.password-wrapper {
    position: relative;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    font-size: 16px;
    transition: color 0.3s;
}

.password-toggle-icon:hover {
    color: rgba(0, 0, 0, 0.85);
}

/* Keep Ant's visibility toggle but style it a bit */
.ant-input-suffix .ant-input-password-icon {
    font-size: 18px;
    color: #64748b;
}

.login-button {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #3fb8a6 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(63, 184, 166, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-button:hover {
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(63, 184, 166, 0.35);
}

.login-button:active {
    -webkit-transform: translateY(0);
            transform: translateY(0);
}

.login-button.ant-btn {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #3fb8a6 0%, #2ecc71 100%);
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(63, 184, 166, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-button.ant-btn:hover,
.login-button.ant-btn:focus {
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(63, 184, 166, 0.35);
}

.login-button.ant-btn:active {
    -webkit-transform: translateY(0);
            transform: translateY(0);
}

.forgot-password {
    display: block;
    margin-top: 16px;
    margin-bottom: 80px;
    color: #3fb8a6;
    color: var(--accent-1);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.forgot-password:hover {
    color: #2d9c8c;
}

.powered-by {
    position: absolute;
    bottom: 30px;
    left: 60px;
    right: 60px;
    text-align: center;
    font-size: 11px;
    font-style: italic;
    color: #94a3b8;
    font-weight: 400;
}

.powered-by span {
    color: #3fb8a6;
    color: var(--accent-1);
    font-weight: 500;
}

/* Right Panel - Floating Healthcare Elements */
.illustration-panel {
    flex: 1 1;
    background: linear-gradient(135deg, #e8f5e9 0%, #E6E6FF 50%, #f3e5f5 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.healthcare-artwork {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    -webkit-animation: float 8s ease-in-out infinite;
            animation: float 8s ease-in-out infinite;
    -webkit-filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
            filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    border-radius: 50%;
    overflow: visible;
}

.floating-element svg {
    border-radius: 50%;
    display: block;
    position: relative;
}

.floating-element svg circle:first-of-type {
    -webkit-filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25));
            filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25));
}

.floating-element img {
    border-radius: 50%;
    display: block;
    -webkit-filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25));
            filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25));
}

.floating-element.element-1 {
    top: 8%;
    left: 8%;
}

.floating-element.element-2 {
    top: 5%;
    right: 10%;
}

.floating-element.element-3 {
    top: 38%;
    right: 5%;
}

.floating-element.element-4 {
    top: 70%;
    right: 18%;
}

.floating-element.element-5 {
    bottom: 8%;
    right: 40%;
}

.floating-element.element-6 {
    bottom: 8%;
    left: 20%;
}

.floating-element.element-7 {
    top: 68%;
    left: 5%;
}

.floating-element.element-8 {
    top: 30%;
    left: 20%;
}

.floating-element.element-9 {
    top: 15%;
    right: 32%;
}

@-webkit-keyframes float {

    0%,
    100% {
        -webkit-transform: translateY(0px) rotate(0deg) scale(1);
                transform: translateY(0px) rotate(0deg) scale(1);
    }

    33% {
        -webkit-transform: translateY(-25px) rotate(3deg) scale(1.03);
                transform: translateY(-25px) rotate(3deg) scale(1.03);
    }

    66% {
        -webkit-transform: translateY(-12px) rotate(-3deg) scale(1.01);
                transform: translateY(-12px) rotate(-3deg) scale(1.01);
    }
}

@keyframes float {

    0%,
    100% {
        -webkit-transform: translateY(0px) rotate(0deg) scale(1);
                transform: translateY(0px) rotate(0deg) scale(1);
    }

    33% {
        -webkit-transform: translateY(-25px) rotate(3deg) scale(1.03);
                transform: translateY(-25px) rotate(3deg) scale(1.03);
    }

    66% {
        -webkit-transform: translateY(-12px) rotate(-3deg) scale(1.01);
                transform: translateY(-12px) rotate(-3deg) scale(1.01);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-panel {
        flex: 0 0 400px;
        padding: 0 45px;
    }

    .logo-section .logo {
        width: 130px;
        height: 130px;
    }

    .brand-name {
        font-size: 32px;
    }

    .brand-tagline {
        font-size: 14px;
    }

    .floating-element {
        -webkit-transform: scale(0.75);
                transform: scale(0.75);
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-panel {
        flex: 0 0 auto;
        width: 100%;
        padding: 40px 30px 80px;
        min-height: 100vh;
    }

    .logo-section {
        margin-bottom: 40px;
    }

    .logo-section .logo {
        width: 110px;
        height: 110px;
    }

    .brand-name {
        font-size: 28px;
    }

    .brand-tagline {
        font-size: 13px;
    }

    .powered-by {
        left: 30px;
        right: 30px;
    }

    .illustration-panel {
        display: none;
    }
}

@media (min-width: 1920px) {
    .login-panel {
        flex: 0 0 520px;
        padding: 0 80px;
    }

    .logo-section .logo {
        width: 170px;
        height: 170px;
    }

    .brand-name {
        font-size: 42px;
    }

    .brand-tagline {
        font-size: 16px;
    }

    .floating-element {
        -webkit-transform: scale(1.1);
                transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 30px 25px 70px;
    }

    .logo-section {
        margin-bottom: 30px;
    }

    .logo-section .logo {
        width: 100px;
        height: 100px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-tagline {
        font-size: 12px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .powered-by {
        left: 25px;
        right: 25px;
    }
}
