@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --color-primary: #006D65;
    --color-secondary: #429545;
    --color-text: #2d3748;
    --light-grey: #e2e8f0;
    --medium-grey: #cbd5e0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffa 50%, #ffffff 100%);
    min-height: 100vh;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Organic background elements */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50% 40% 60% 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
    border-radius: 40% 50% 50% 60%;
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
}

/* Main Container */
.registration-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1400px;
    width: 100%;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* Left Side - Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.logo-wrapper svg {
    stroke: var(--color-primary);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #065f46 0%, #00746b 50%, #109d6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.info-hero {
    margin-bottom: 2rem;
}

.info-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #065f46;
    margin-bottom: .8rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.info-hero p {
    font-size: 1rem;
    color: #064e3b;
    line-height: 1.6;
    opacity: 0.9;
}

/* Account Type Cards */
.account-type-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.info-item:hover {
    transform: translateY(-2px);
    opacity: 1;
    border-color: rgba(16, 185, 129, 0.3);
}

.info-item[data-type="vendor"] {
    opacity: 1;
    border-color: rgba(0, 109, 101, 0.4);
    background: rgba(236, 253, 245, 0.8);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.info-header svg {
    stroke: var(--color-primary);
    flex-shrink: 0;
}

.info-header strong {
    font-size: .9rem;
    color: #065f46;
    font-weight: 700;
}

.coming-soon-badge {
    margin-left: auto;
    background: var(--medium-grey);
    color: white;
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-weight: 600;
}

.info-item p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #064e3b;
    margin-bottom: .8rem;
    opacity: 0.9;
}

.info-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.info-features span {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Right Side - Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(16, 185, 129, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 24px 0 rgba(16, 185, 129, 0.01);
}

.login-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-card>p {
    color: #064e3b;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 109, 101, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

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

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--color-primary);
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #006D65 0%, #00857a 50%, #006D65 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 109, 101, 0.25);
}

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

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(16, 185, 129, 0.1);
}

.links span {
    font-size: 0.9rem;
    color: #064e3b;
}

.links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.links a:hover {
    color: #00857a;
    text-decoration: underline;
}

/* Back to Home */
.back-home {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.back-home a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #00746b;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 153, 108, 0.5);
    border-radius: 50%;
    color: #065f46;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.back-home a svg {
    stroke: #ffffff;
    transition: stroke 0.3s ease;
    font-size: 1.4rem;
}

.back-home a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 109, 101, 0.2);
}

.back-home a:hover svg {
    stroke: white;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile-specific account type cards (hidden by default) */
.mobile-account-type-info {
    display: none;
}

/* Login Page Specific Styles */
.login-container,
.forgot-password-container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-container .logo-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.login-container .login-card {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .registration-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 0;
    }

    /* Hide desktop info section */
    .info-section {
        display: none;
    }

    /* Show mobile account type cards */
    .mobile-account-type-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .form-section {
        padding: 2rem;
    }

    .info-hero h1 {
        font-size: 2rem;
    }

    .back-home {
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }

    .form-section {
        padding: 1.75rem 1.5rem;
        border-radius: 20px;
    }

    .login-card h2 {
        font-size: 1.5rem;
    }

    .info-item {
        padding: 1.25rem;
    }

    .info-header strong {
        font-size: 1rem;
    }

    .back-home {
        top: 1rem;
        right: 1rem;
    }

    .back-home a {
        width: 44px;
        height: 44px;
    }

    .back-home a svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.75rem;
    }

    .form-section {
        padding: 1.5rem 1.25rem;
    }

    .login-card h2 {
        font-size: 1.35rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem 0.9rem;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }

    .info-item {
        padding: 1rem;
    }

    .info-features span {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
    }

    .back-home a {
        width: 40px;
        height: 40px;
    }

    .back-home a svg {
        width: 16px;
        height: 16px;
    }
}

/* Print styles */
@media print {

    .back-home,
    .info-section {
        display: none;
    }
}