@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');
html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background: #f6f8fa;
    color: #1e2f5e;
}

.signup-split-bg {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: row;
    background: #f6f8fa;
}

.signup-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 54px 54px 42px 54px;
    box-sizing: border-box;
    background: #fff;
    height: 100vh;
}

.signup-panel.left {
    flex: 1 1 430px;
    min-width: 380px;
    max-width: 480px;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    box-shadow: 0 6px 40px 0 rgba(40, 86, 166, 0.07), 0 1.5px 6px rgba(40, 86, 166, 0.03);
    z-index: 2;
}

.signup-panel.right {
    flex: 2 1 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e2f5e 0%, #2856a6 100%);
    overflow: hidden;
    padding: 0;
    min-width: 0;
    /* ensure background fills and is not squashed */
}

.signup-hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 48px rgba(40, 86, 166, 0.17);
    margin: 0;
    /* Remove extra padding/margins from any parent! */
}

.signup-logo-row {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
}

.signup-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 3px 16px rgba(40, 86, 166, 0.05);
    background: #f3f5fb;
    object-fit: contain;
}

.signup-brand {
    font-size: 1.29rem;
    font-weight: 700;
    color: #1e2f5e;
    letter-spacing: -.5px;
}

.signup-title {
    font-size: 2.12rem;
    font-weight: 700;
    color: #1e2f5e;
    margin: 12px 0 7px 0;
    line-height: 1.14;
    letter-spacing: -.6px;
}

.signup-subtitle {
    font-size: 1.03rem;
    color: #2856a6;
    margin-bottom: 34px;
    font-weight: 500;
    opacity: 0.83;
}

.signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin-bottom: 22px;
}

.input-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-wrap label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e2f5e;
    opacity: .83;
    margin-bottom: 3px;
}

.signup-form input[type="email"],
.signup-form input[type="password"] {
    width: 100%;
    border: 1.5px solid #e5e9f2;
    border-radius: 13px;
    background: #f3f5fb;
    font-size: 1.06rem;
    padding: 14px 18px;
    color: #23426c;
    outline: none;
    font-family: 'Alata', sans-serif;
    box-sizing: border-box;
    transition: border 0.17s, background 0.13s;
}

.signup-form input[type="email"]:focus,
.signup-form input[type="password"]:focus {
    border-color: #2856a6;
    background: #eef1fa;
}

.signup-btn {
    background: linear-gradient(90deg, #1e2f5e 0%, #2856a6 50%, #1e2f5e 100%);
    background-size: 300% 100%;
    background-position: 0% 50%;
    color: #fff;
    border: none;
    border-radius: 13px;
    padding: 15px 0;
    font-size: 1.08rem;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    box-shadow: 0 2.5px 8px rgba(40, 86, 166, 0.05);
    transition:
        background-position 0.6s cubic-bezier(.5, 1.7, .43, .8),
        box-shadow 0.17s;
}

.signup-btn:hover,
.signup-btn:focus {
    background-position: 100% 50%;
    box-shadow: 0 5px 20px rgba(30, 47, 94, 0.10);
}

.signup-alert {
    padding: 13px 18px;
    border-radius: 11px;
    font-size: 1.02rem;
    margin-bottom: 14px;
    margin-top: 8px;
    width: 100%;
    text-align: left;
    font-weight: 500;
    letter-spacing: .01rem;
}

.signup-alert.error {
    background: #ffe5e5;
    color: #c62828;
    border: 1.6px solid #f7b0b0;
}

.signup-alert.success {
    background: #e5f9ec;
    color: #11603c;
    border: 1.6px solid #1bbc80;
}

.signup-alt {
    margin-top: 6px;
    font-size: 1.04rem;
    color: #2d405e;
    opacity: .87;
}

.signup-link {
    color: #2856a6;
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.15s;
}

.signup-link:hover {
    color: #1e2f5e;
}

.signup-help {
    margin-top: 13px;
    text-align: left;
    width: 100%;
}

.help-link {
    color: #2856a6;
    font-weight: 700;
    font-size: 1.06rem;
    text-decoration: none;
    opacity: 0.92;
    letter-spacing: 0.03em;
    padding: 0 2px;
    transition: color 0.15s, opacity 0.15s;
    border-radius: 7px;
    background: none;
    outline: none;
    display: inline-block;
}

.help-link:hover,
.help-link:focus {
    color: #1e2f5e;
    opacity: 1;
    text-decoration: none;
}

@media (max-width: 950px) {
    .signup-split-bg {
        flex-direction: column;
        min-height: 100vh;
    }

    .signup-panel.left,
    .signup-panel.right {
        border-radius: 0;
        max-width: 100vw;
        min-width: 0;
        height: unset;
    }

    .signup-panel.left {
        box-shadow: none;
        padding: 40px 7vw 30px 7vw;
    }

    .signup-panel.right {
        min-height: 220px;
        padding: 28px 0 20px 0;
    }

    .signup-hero-img {
        border-radius: 13px;
        width: 96%;
    }
}

@media (max-width: 600px) {
    .signup-panel.left {
        padding: 24px 2vw 14px 2vw;
    }

    .signup-hero-img {
        width: 100%;
    }
}

/* ========== TOAST SYSTEM SIGMA ========== */
#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.toast {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    max-width: 340px;
    animation: slideIn 0.3s ease forwards;
    color: #333;
    opacity: 1;
    transform: translateX(0);
    transition: none;
}
.toast i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}
.toast .close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}
/* Toast Variants */
.toast.success {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #2e7d32;
}
.toast.danger {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #c62828;
}
.toast.info {
    background-color: rgba(33, 150, 243, 0.2);
    border-color: #2196f3;
    color: #1565c0;
}
.toast.warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #b26a00;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px);}
    to   { opacity: 1; transform: translateX(0);}
}
@keyframes slideOut {
    from { opacity: 1; transform: translateX(0);}
    to   { opacity: 0; transform: translateX(50px);}
}
