﻿:root {
    --primary-teal: #1DB9B4;
    --secondary-teal: #17a39f;
    --dark-bg: #2C3E50;
    --light-bg: #f8f9fa;
    --purple: #667eea;
    --violet: #764ba2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-container {
    background: white;
    box-shadow: 0 25px 70px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

/* Left Panel - Phone Mockup */
.left-panel {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #15958f 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .left-panel::before {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: rgba(255,255,255,0.08);
        border-radius: 50%;
        top: -100px;
        left: -100px;
    }

    .left-panel::after {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,0.08);
        border-radius: 50%;
        bottom: -80px;
        right: -80px;
    }

.phone-mockup {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 560px;
    background: #2C3E50;
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.election-text {
    color: var(--primary-teal);
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.ballot-icon {
    width: 160px;
    height: 160px;
    background: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.vote-btn {
    background: var(--primary-teal);
    color: white;
    padding: 12px 50px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.tagline {
    position: relative;
    z-index: 2;
    font-size: 20px;
    margin-top: 30px;
    font-weight: 300;
    text-align: center;
}

/* Right Panel - Form */
.right-panel {
    padding: 35px 50px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: white;
    margin: auto;
}

    .right-panel::-webkit-scrollbar {
        width: 6px;
    }

    .right-panel::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .right-panel::-webkit-scrollbar-thumb {
        background: var(--primary-teal);
        border-radius: 10px;
    }

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: var(--primary-teal);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(29, 185, 180, 0.3);
}

.logo-text {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.main-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.subtitle {
    color: #6C757D;
    font-size: 16px;
    margin-bottom: 10px;
}

.cta-text {
    background: linear-gradient(135deg, var(--primary-teal), var(--purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6C757D;
    z-index: 10;
}

.form-control, .form-select {
    padding-left: 45px;
    height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-teal);
        box-shadow: 0 0 0 0.2rem rgba(29, 185, 180, 0.15);
    }

.terms-link-btn {
    background: var(--light-bg);
    border: 2px dashed var(--primary-teal);
    color: var(--dark-bg);
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    margin: 20px 0 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .terms-link-btn:hover {
        background: rgba(29, 185, 180, 0.1);
        transform: translateY(-2px);
    }

    .terms-link-btn i {
        color: var(--primary-teal);
        margin-right: 8px;
    }

    .terms-link-btn strong {
        color: var(--primary-teal);
    }

.form-check {
    margin: 15px 0;
}

.form-check-input:checked {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.form-check-label {
    font-size: 13px;
    color: #495057;
}

.btn-submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-teal), var(--purple));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(29, 185, 180, 0.3);
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.login-text {
    text-align: center;
    color: #6C757D;
    font-size: 14px;
    margin-bottom: 15px;
}

    .login-text a {
        color: var(--primary-teal);
        text-decoration: none;
        font-weight: 600;
    }


/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-teal), var(--purple));
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 25px 30px;
    border: none;
}

.modal-title {
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .modal-title i {
        font-size: 28px;
    }

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

    .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: var(--primary-teal);
        border-radius: 10px;
    }

.terms-intro {
    font-size: 14px;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-teal);
}

.terms-section {
    margin-bottom: 20px;
}

.terms-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.terms-section-content {
    font-size: 14px;
    color: #495057;
    line-height: 1.7;
    padding-left: 42px;
}

.modal-footer {
    border: none;
    padding: 20px 30px;
    background: var(--light-bg);
    border-radius: 0 0 20px 20px;
}

.btn-accept-terms {
    background: linear-gradient(135deg, var(--primary-teal), var(--purple));
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}

    .btn-accept-terms:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(29, 185, 180, 0.3);
    }

.btn-close {
    background: transparent;
    border: 2px solid white;
    opacity: 1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

    .btn-close:hover {
        background: white;
    }

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 5px;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .registration-container {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .left-panel {
        padding: 40px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .right-panel {
        padding: 30px 25px;
    }

    .left-panel {
        padding: 30px;
        min-height: 400px;
    }
}
