<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>Registrarte | Sistema</title>
    <link rel="stylesheet" href="admin/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="admin/bootstrap/font-awesome/css/font-awesome.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

        body {
            font-family: 'Outfit', sans-serif !important;
            background: url('images/fondoserin.jpeg') no-repeat center center !important;
            background-size: cover !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            position: relative;
        }

        /* Backdrop overlay for readability */
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.6) !important; /* Translucent elegant overlay */
            backdrop-filter: blur(8px) !important; /* Soft blur to clear visual noise */
            -webkit-backdrop-filter: blur(8px) !important;
            z-index: 0;
        }

        .register-box {
            width: 100%;
            max-width: 460px;
            margin: 0 !important;
            position: relative;
            z-index: 10;
        }

        .register-box-body {
            background: rgba(255, 255, 255, 0.96) !important;
            border-radius: 20px !important;
            border: 1px solid rgba(255, 255, 255, 0.8) !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
            padding: 40px 35px 35px 35px !important;
            color: #334155 !important;
            transition: all 0.3s ease;
        }

        .login-logo-container {
            text-align: center;
            margin-bottom: 25px;
            margin-top: -20px;
        }

        .login-logo-container img {
            max-height: 110px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.03));
            transition: transform 0.3s ease;
        }

        .login-logo-container img:hover {
            transform: scale(1.02);
        }

        .login-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .login-header-icon {
            width: 48px;
            height: 48px;
            background: rgba(2, 82, 197, 0.1);
            color: #0252c5;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 12px;
        }

        .login-header h2 {
            font-family: 'Outfit', sans-serif !important;
            font-size: 22px;
            font-weight: 700;
            color: #0f172a;
            margin: 0 0 6px 0;
            letter-spacing: -0.5px;
        }

        .login-header p {
            font-family: 'Outfit', sans-serif !important;
            font-size: 14px;
            color: #64748b;
            margin: 0;
        }

        .form-group {
            margin-bottom: 15px !important;
        }

        .form-control {
            font-family: 'Outfit', sans-serif !important;
            height: 46px !important;
            border-radius: 10px !important;
            border: 1.5px solid #cbd5e1 !important;
            background-color: #f8fafc !important;
            box-shadow: none !important;
            padding-left: 16px !important;
            padding-right: 16px !important;
            font-size: 15px !important;
            color: #1e293b !important;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        .form-control:focus {
            border-color: #0252c5 !important;
            background-color: #ffffff !important;
            box-shadow: 0 0 0 4px rgba(2, 82, 197, 0.15) !important;
            outline: none !important;
        }

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

        /* Button Styling */
        .btn-register {
            font-family: 'Outfit', sans-serif !important;
            width: 100% !important;
            height: 48px !important;
            background: linear-gradient(135deg, #0252c5 0%, #013580 100%) !important;
            color: #ffffff !important;
            border: none !important;
            border-radius: 10px !important;
            font-size: 16px !important;
            font-weight: 600 !important;
            letter-spacing: 0.5px !important;
            cursor: pointer !important;
            box-shadow: 0 4px 12px rgba(2, 82, 197, 0.3) !important;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px !important;
        }

        .btn-register:hover {
            background: linear-gradient(135deg, #0261e8 0%, #0247ad 100%) !important;
            box-shadow: 0 6px 20px rgba(2, 82, 197, 0.45) !important;
            transform: translateY(-1px) !important;
        }

        .btn-register:active {
            transform: translateY(1px) scale(0.98) !important;
            box-shadow: 0 2px 8px rgba(2, 82, 197, 0.2) !important;
        }

        .btn-register:focus {
            outline: none !important;
            box-shadow: 0 0 0 4px rgba(2, 82, 197, 0.35) !important;
        }

        .btn-back {
            font-family: 'Outfit', sans-serif !important;
            width: 100% !important;
            height: 48px !important;
            background: transparent !important;
            color: #475569 !important;
            border: 1.5px solid #cbd5e1 !important;
            border-radius: 10px !important;
            font-size: 16px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            transition: all 0.25s ease !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin-top: 12px !important;
            text-decoration: none !important;
        }

        .btn-back:hover {
            background: #f1f5f9 !important;
            color: #1e293b !important;
            border-color: #94a3b8 !important;
            text-decoration: none !important;
        }
    </style>
</head>
<body>
    <div class="register-box">
        <div class="register-box-body">
            <div class="login-logo-container">
                <img src="assets/img/serintsa.png" alt="Logo">
            </div>
            
            <div class="login-header">
                <div class="login-header-icon">
                    <i class="fa fa-user-plus"></i>
                </div>
                <h2>Crear Cuenta</h2>
                <p>Ingresa tus datos para registrarte</p>
            </div>

            <form method="post" action="action/addemployee.php">
                <div class="form-group">
                    <input type="text" class="form-control" name="nombre" placeholder="Nombre" required>
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" name="apellidos" placeholder="Apellidos" required>
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" name="empresa" placeholder="Empresa" required>
                </div>
                <div class="form-group">
                    <input type="email" class="form-control" name="email" placeholder="Correo Electrónico" required>
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" name="codigo" placeholder="Código/RUC" required>
                </div>
                <div class="form-group">
                    <input type="number" class="form-control" name="phone" placeholder="Teléfono" required>
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" name="password" placeholder="Contraseña" required>
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" name="confirm_pass" placeholder="Confirmar Contraseña" required>
                </div>

                <!-- Campos ocultos para lat/long (sin mapa) -->
                <input type="hidden" name="lat" value="">
                <input type="hidden" name="long" value="">

                <button type="submit" class="btn-register">
                    Registrarse <i class="fa fa-user-plus" style="margin-left: 4px;"></i>
                </button>
                <a href="index.php" class="btn-back">
                    <i class="fa fa-arrow-left" style="margin-right: 8px;"></i> Volver
                </a>
            </form>
        </div>
    </div>
</body>
</html>
