/* Modern Kenyan-Themed CSS for NIA YETU Signup Page */

/* Global Styles */
:root {
    --kenya-green: #006600;
    --kenya-red: #DE2910;
    --kenya-black: #000000;
    --kenya-white: #FFFFFF;
    --kenya-gold: #FFD700;
    --kenya-earth: #8B4513;
    --kenya-sky: #87CEEB;
    --kenya-safari: #CD853F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--kenya-white) 0%, #f0f8ff 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(222, 41, 16, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 0, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 40% 40%, rgba(205, 133, 63, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

/* Why Signup Section */
.why-signup {
    background: linear-gradient(135deg, var(--kenya-green) 0%, var(--kenya-black) 100%);
    color: var(--kenya-white);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--kenya-red);
}

.why-signup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='2' fill='%23FFD700' opacity='0.2'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Cpath d='M30,30 L70,70 M30,70 L70,30' stroke='%23DE2910' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.why-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why-signup h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--kenya-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.why-signup h6 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

.why-signup .features {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    line-height: 1.8;
}

.why-signup .cta {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--kenya-red) 0%, #a61c0d 100%);
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(222, 41, 16, 0.4);
}

/* Form Styles */
#location-form {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.form-structor {
    background: var(--kenya-white);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.form-structor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--kenya-black) 0%, var(--kenya-red) 35%, var(--kenya-green) 70%, var(--kenya-gold) 100%);
}

.signup {
    padding: 2.5rem;
}

.form-title {
    color: var(--kenya-black);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--kenya-red), var(--kenya-green));
    border-radius: 2px;
}

.form-holder {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.input, select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    color: #333;
}

.input:focus, select:focus {
    outline: none;
    border-color: var(--kenya-green);
    box-shadow: 0 0 0 3px rgba(0, 102, 0, 0.2);
    background-color: var(--kenya-white);
}

.input::placeholder {
    color: #888;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--kenya-green);
}

#password-strength {
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 600;
}

.submit-btn {
    background: linear-gradient(135deg, var(--kenya-green) 0%, #004d00 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 102, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Link Styles */
a.nia-bar-item.nia-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--kenya-black) 0%, #333 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

a.nia-bar-item.nia-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (min-width: 768px) {
    .form-holder {
        grid-template-columns: 1fr 1fr;
    }
    
    .why-signup {
        padding: 4rem 2.5rem;
    }
    
    .why-signup h3 {
        font-size: 2.8rem;
    }
    
    .why-signup h6 {
        font-size: 1.6rem;
    }
    
    .form-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .signup {
        padding: 1.8rem;
    }
    
    .why-signup {
        padding: 2rem 1.5rem;
    }
    
    .why-signup h3 {
        font-size: 1.8rem;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
}

/* Animation for form elements */
.input, select, .submit-btn {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay animations for form elements */
.input:nth-child(1) { animation-delay: 0.1s; }
.input:nth-child(2) { animation-delay: 0.2s; }
.input:nth-child(3) { animation-delay: 0.3s; }
.input:nth-child(4) { animation-delay: 0.4s; }
select:nth-child(5) { animation-delay: 0.5s; }
select:nth-child(6) { animation-delay: 0.6s; }
select:nth-child(7) { animation-delay: 0.7s; }
.password-wrapper:nth-child(8) { animation-delay: 0.8s; }
.password-wrapper:nth-child(9) { animation-delay: 0.9s; }
.submit-btn { animation-delay: 1s; }

/* Custom select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23006600' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12L8 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}

/* Safari-inspired details */
.signup {
    position: relative;
}

.signup::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 A40,40 0 1,1 50,90 A40,40 0 1,1 50,10 Z' fill='none' stroke='%23006600' stroke-width='0.5' opacity='0.2'/%3E%3Cpath d='M30,30 Q50,10 70,30 T90,50 T70,70 T50,90 T30,70 T10,50 T30,30 Z' fill='none' stroke='%23DE2910' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* Focus states for accessibility */
.input:focus, select:focus, .submit-btn:focus {
    outline: 2px solid var(--kenya-gold);
    outline-offset: 2px;
}