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

/* Landing Page Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #f39c12 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

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

.hero-logo {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 5px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-address {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 5px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-contact {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-slogan {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.95;
    margin-top: 25px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: inline-block;
    animation: fadeInUp 1s ease 1s both;
}

.hero-slogan i {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Search Section */
.search-section {
    padding: 60px 0;
    flex: 1;
}

.search-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1s ease 0.8s both;
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3c72;
    text-align: center;
    margin-bottom: 15px;
}

.search-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.search-form {
    margin-bottom: 20px;
}

.search-form .input-group {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
    display: flex !important;
}

.search-form .form-control {
    border: 2px solid #e0e0e0 !important;
    border-right: none !important;
    padding: 15px 25px !important;
    font-size: 1.1rem !important;
    border-radius: 50px 0 0 50px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.search-form .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #1e293b !important;
}

.search-form .form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.search-form .btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    border: none !important;
    padding: 15px 35px !important;
    font-weight: 600 !important;
    border-radius: 0 50px 50px 0 !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: white !important;
}

.search-form .btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    transform: translateX(2px);
}

.search-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
    margin: 0;
}

/* Member ID Card */
.member-id-card-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: slideInUp 0.5s ease;
}

.member-id-card {
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}

.id-card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 20px 30px;
}

.id-card-header h4 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.id-card-header p {
    color: rgba(255,255,255,0.9);
    margin: 5px 0 0 0;
    font-size: 0.75rem;
    line-height: 1.3;
}

.id-logo {
    height: 80px;
    width: auto;
    background: transparent;
}

.id-badge {
    text-align: right;
}

.id-card-body {
    padding: 30px;
    position: relative;
    background: white;
    overflow: hidden;
}

.id-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.7;
    background-image: 
        /* Horizontal curved wave patterns - Rainbow colors */
        radial-gradient(ellipse 1000px 80px at 0% 10%, rgba(255, 0, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 100% 15%, rgba(255, 127, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 0% 25%, rgba(255, 255, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 100% 35%, rgba(0, 255, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 0% 45%, rgba(0, 191, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 100% 55%, rgba(0, 0, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 0% 65%, rgba(75, 0, 130, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 100% 75%, rgba(148, 0, 211, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 0% 85%, rgba(255, 0, 127, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 80px at 100% 95%, rgba(255, 105, 180, 0.12) 0%, transparent 50%),
        
        /* Vertical curved wave patterns */
        radial-gradient(ellipse 80px 1000px at 15% 0%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80px 1000px at 35% 100%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80px 1000px at 55% 0%, rgba(50, 205, 50, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80px 1000px at 75% 100%, rgba(30, 144, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80px 1000px at 85% 0%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        
        /* Concentric circular patterns */
        repeating-radial-gradient(circle at 25% 25%, transparent 0px, transparent 40px, rgba(255, 0, 100, 0.06) 40px, rgba(255, 0, 100, 0.06) 42px),
        repeating-radial-gradient(circle at 75% 25%, transparent 0px, transparent 40px, rgba(0, 200, 255, 0.06) 40px, rgba(0, 200, 255, 0.06) 42px),
        repeating-radial-gradient(circle at 25% 75%, transparent 0px, transparent 40px, rgba(100, 255, 0, 0.06) 40px, rgba(100, 255, 0, 0.06) 42px),
        repeating-radial-gradient(circle at 75% 75%, transparent 0px, transparent 40px, rgba(255, 100, 255, 0.06) 40px, rgba(255, 100, 255, 0.06) 42px),
        repeating-radial-gradient(circle at 50% 50%, transparent 0px, transparent 35px, rgba(255, 200, 0, 0.05) 35px, rgba(255, 200, 0, 0.05) 37px),
        
        /* Diagonal curved patterns */
        radial-gradient(ellipse 600px 100px at 0% 0%, rgba(255, 20, 147, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 600px 100px at 100% 100%, rgba(0, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 600px 100px at 100% 0%, rgba(255, 255, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 600px 100px at 0% 100%, rgba(255, 0, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.id-card-body > * {
    position: relative;
    z-index: 1;
}

.id-photo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border: 4px solid #3b82f6;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.id-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
}

.id-details {
    padding: 10px 0;
}

.detail-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    min-width: 120px;
    margin: 0;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.qr-code-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #cbd5e1;
    text-align: center;
}

.qr-code-display {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.qr-code-display canvas {
    max-width: 100%;
    max-height: 100%;
}

.qr-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 10px;
}

.id-card-footer {
    background: #f8fafc;
    padding: 15px 30px;
    border-top: 2px solid #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
}

/* Footer */
.landing-footer {
    background: #1e293b;
    color: white;
    padding: 30px 0;
    margin-top: auto;
}

.footer-link {
    color: #f39c12;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-logo {
        height: 100px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle,
    .hero-address {
        font-size: 0.85rem;
    }
    
    .hero-slogan {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .search-container {
        padding: 30px 20px;
    }
    
    .search-title {
        font-size: 1.5rem;
    }
    
    .search-form .input-group {
        flex-direction: column !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
    
    .search-form .form-control {
        font-size: 1rem !important;
        padding: 14px 20px !important;
        border-radius: 25px !important;
        border: 2px solid #cbd5e1 !important;
        border-right: 2px solid #cbd5e1 !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #1e293b !important;
        display: block !important;
        height: auto !important;
        min-height: 48px !important;
    }
    
    .search-form .form-control:focus {
        background: #ffffff !important;
        color: #1e293b !important;
        border-color: #3b82f6 !important;
    }
    
    .search-form .btn-primary {
        font-size: 1rem !important;
        padding: 14px 20px !important;
        border-radius: 25px !important;
        width: 100% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        display: block !important;
        min-height: 48px !important;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .results-title {
        font-size: 1.4rem;
    }
    
    .member-id-card-container {
        padding: 15px 10px;
    }
    
    .member-id-card {
        border-width: 2px;
    }
    
    .id-card-header {
        padding: 15px 10px;
    }
    
    .id-card-header .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .id-card-header .d-flex > div:first-child {
        flex-direction: column;
        text-align: center;
    }
    
    .id-card-header .d-flex > div:first-child .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .id-card-header h4 {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .id-card-header p {
        font-size: 0.65rem;
        text-align: center;
    }
    
    .id-logo {
        height: 60px;
        margin-bottom: 10px;
    }
    
    .id-badge {
        text-align: center;
    }
    
    .id-badge .badge {
        font-size: 0.85rem !important;
        padding: 8px 16px !important;
    }
    
    .id-card-body {
        padding: 20px 10px;
    }
    
    .id-card-body .row {
        margin: 0;
    }
    
    .id-card-body .col-md-3,
    .id-card-body .col-md-6 {
        padding: 0 5px;
    }
    
    .id-photo-container {
        width: 120px;
        height: 120px;
        border-width: 3px;
        margin-bottom: 15px;
    }
    
    .id-details {
        padding: 0;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    .detail-label {
        min-width: auto;
        margin-bottom: 3px;
        font-size: 0.75rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    
    .qr-code-container {
        padding: 10px;
        margin-top: 15px;
    }
    
    .qr-code-display {
        width: 100px;
        height: 100px;
    }
    
    .qr-label {
        font-size: 0.7rem;
        margin-top: 5px;
    }
    
    .id-card-footer {
        padding: 10px 15px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .search-container {
        padding: 20px 15px !important;
    }
    
    .search-title {
        font-size: 1.2rem;
    }
    
    .search-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .search-form .input-group {
        flex-direction: column !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .search-form .form-control {
        border-radius: 25px !important;
        border: 3px solid #cbd5e1 !important;
        border-right: 3px solid #cbd5e1 !important;
        margin-bottom: 12px !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.15) !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #1e293b !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        display: block !important;
        height: auto !important;
        min-height: 52px !important;
        line-height: 1.5 !important;
    }
    
    .search-form .form-control:focus {
        border-color: #3b82f6 !important;
        outline: none !important;
        box-shadow: 0 3px 15px rgba(59, 130, 246, 0.3) !important;
        background: #ffffff !important;
        color: #1e293b !important;
    }
    
    .search-form .form-control::placeholder {
        color: #94a3b8 !important;
        opacity: 1 !important;
    }
    
    .search-form .btn-primary {
        border-radius: 25px !important;
        width: 100% !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.2) !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        display: block !important;
        min-height: 52px !important;
    }
    
    .member-id-card-container {
        padding: 10px 5px;
    }
    
    .id-card-header h4 {
        font-size: 0.8rem;
    }
    
    .id-card-header p {
        font-size: 0.6rem;
    }
    
    .id-logo {
        height: 50px;
    }
    
    .id-photo-container {
        width: 100px;
        height: 100px;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
    }
    
    .qr-code-display {
        width: 80px;
        height: 80px;
    }
}