* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #eef2f8 0%, #e6eef5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.login-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.hero-side {
    background: linear-gradient(145deg, #0D2C6C 0%, #1a3d7a 100%);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* subtle radial pattern */
.hero-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* brand icons and images stay on top */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Both images container: top journal logo + powered-by at bottom, both inside left side */
.image-group-top img,
.image-group-bottom img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.image-group-bottom img {
    max-width: 250px;
}

/* decorative lines using Bootstrap flex utilities */
.deco-lines span {
    width: 40px;
    height: 3px;
    border-radius: 20px;
    background: #FFD966;
    opacity: 0.6;
}

.deco-lines span:first-child {
    width: 60px;
    opacity: 1;
}

/* right side form elements - custom inputs, but minimal extra CSS (mostly border, radius) */
.form-control-custom {
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.875rem;
    background: #fff;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control-custom:focus {
    outline: none;
    border-color: #FFB347;
    box-shadow: 0 0 0 3px rgba(255, 180, 71, 0.15);
}

select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c86a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.input-group-icon {
    position: relative;
}

.input-group-icon i:first-child {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #9aaebf;
    font-size: 0.9rem;
    z-index: 2;
}

.btn-reset {
    border: none;
    border-radius: 50px;
    padding: 0.75rem;
    background: linear-gradient(100deg, #0D2C6C, #1a3d7a);
    color: #fff;
    font-weight: 600;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(13, 44, 108, 0.25);
}

.btn-reset:hover {
    transform: translateY(-1px);
    background: linear-gradient(100deg, #12347b, #21488a);
    color: #fff;
}

.btn-reset:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.field_error {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    display: block;
}

#err {
    display: none;
    font-size: 0.8rem;
    background: #fdecea;
    border-radius: 50px;
    padding: 0.6rem 1rem;
    text-align: center;
}

#err.show {
    display: block;
}

.form-side {
    padding: 1rem 1.5rem !important;
}

.form-title {
    font-size: 1.8rem !important;
    margin-bottom: 0.25rem;
}

.form-subtitle {
    margin-bottom: 1.25rem !important;
}

/* Organization Cards Container */
.org-cards-wrapper {
    position: relative;
    z-index: 2;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.2rem 0.4rem 0.4rem;
    max-height: 200px;
    overflow: hidden;
}

.org-cards-container {
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar */
.org-cards-container::-webkit-scrollbar {
    width: 4px;
}

.org-cards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.org-cards-container::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 100, 0.4);
    border-radius: 10px;
}

.org-cards-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 100, 0.7);
}

/* Individual Card */
.org-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    margin-bottom: 0.4rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.org-card:last-child {
    margin-bottom: 0;
}

.org-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 100, 0.25);
    transform: translateX(3px);
}

.org-card-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 215, 100, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFD966;
    font-size: 0.65rem;
}

.org-card-content {
    flex: 1;
    min-width: 0;
}

.org-card-content .org-name {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.org-card-content .org-name:hover {
    color: #FFD966;
}

.org-card-content .org-domain {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.55rem;
    font-weight: 300;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    body {
        padding: 0.75rem;
    }

    .login-card {
        border-radius: 1.5rem;
    }

    .image-group-top img,
    .image-group-bottom img {
        max-width: 130px;
    }

    .form-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {

    .image-group-top img,
    .image-group-bottom img {
        max-width: 110px;
    }
}

.toggle-pwd {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9aaebf;
    z-index: 2;
}

.toggle-pwd:hover {
    color: #FFB347;
}