﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.registration-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.1);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
}

    .registration-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(76, 175, 80, 0.15);
    }

.header {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: float 6s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(180deg);
    }
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.logo-text {
    color: #4CAF50;
    font-size: 24px;
    font-weight: bold;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.header p {
    opacity: 0.9;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.form-container {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #2E7D32;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e8f5e8;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.3s ease;
        background: #fafffe;
    }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #4CAF50;
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(76, 175, 80, 0.1);
        }

        .form-group input:hover,
        .form-group select:hover {
            border-color: #66BB6A;
        }

.form-row {
    display: flex;
    gap: 15px;
}

    .form-row .form-group {
        flex: 1;
    }

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

    .toggle-password:hover {
        color: #2E7D32;
        transform: translateY(-50%) scale(1.1);
    }

.register-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

    .register-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: all 0.6s;
    }

    .register-btn:hover::before {
        left: 100%;
    }

    .register-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(76, 175, 80, 0.3);
    }

    .register-btn:active {
        transform: translateY(-1px);
    }

.login-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8f5e8;
}

    .login-link a {
        color: #4CAF50;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .login-link a:hover {
            color: #2E7D32;
            text-decoration: underline;
        }

.required {
    color: #f44336;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .registration-container {
        margin: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .form-container {
        padding: 30px 20px;
    }
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    opacity: 0.7;
}

.form-group.has-icon input {
    padding-left: 45px;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
    display: none;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #f44336;
    display: none;
}
